Skip to content

Commit aa6bf71

Browse files
committed
🚀 🔥 Timeline Vec to HashMap, change primitives
The timeline original Vec got swapped out for a HashMap. I might go back and change it back to a pair of `Vec`s. The performance boost from this will be minimal, but for bigger games it might make a change. The timeline coordinate, which was originally a f32, is now a i32. Again, no crazy performance boost out of this, but still one nonetheless. The parsing of games is now done using serde and serde_json. This means less verbosity in the errors, though. width, height, x and y got swapped out for a u8; this is the reason as to why almost every file got changed.
1 parent 7dc72f8 commit aa6bf71

File tree

10 files changed

+390
-385
lines changed

10 files changed

+390
-385
lines changed

Cargo.lock

Lines changed: 80 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ permute = "0.1.0"
1818
scoped_threadpool = "0.1.9"
1919
env_logger = "0.7.1"
2020
log = "0.4.11"
21+
serde = {version = "1.0.117", features = ["derive"]}
22+
serde_json = "1.0"

0 commit comments

Comments
 (0)