projects
/
onyx-aoc-2020.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f3662c
)
added comment in day 15
author
Brendan Hansen
<brendan.f.hansen@gmail.com>
Tue, 15 Dec 2020 20:06:54 +0000
(14:06 -0600)
committer
Brendan Hansen
<brendan.f.hansen@gmail.com>
Tue, 15 Dec 2020 20:06:54 +0000
(14:06 -0600)
day15.onyx
patch
|
blob
|
history
diff --git
a/day15.onyx
b/day15.onyx
index 923bc05d35a05f8a2e080537def399b028696f14..90b46d4a7e1e4d4c267d2d53bc5985d0e5763589 100644
(file)
--- a/
day15.onyx
+++ b/
day15.onyx
@@
-14,6
+14,9
@@
main :: proc (args: [] cstr) {
file := reader.make(contents);
+ // The current implementation of Map is rather slow at a large scale.
+ // Any changes to the implementation of Map should be tested on this
+ // file to validate if they 1) work and 2) are faster.
nums : map.Map(u32, spoken_times);
map.init(^nums, 32767);
defer map.free(^nums);
@@
-44,4
+47,4
@@
main :: proc (args: [] cstr) {
}
printf("30000000th: %i\n", last_num);
-}
\ No newline at end of file
+}