added comment in day 15
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Tue, 15 Dec 2020 20:06:54 +0000 (14:06 -0600)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Tue, 15 Dec 2020 20:06:54 +0000 (14:06 -0600)
day15.onyx

index 923bc05d35a05f8a2e080537def399b028696f14..90b46d4a7e1e4d4c267d2d53bc5985d0e5763589 100644 (file)
@@ -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
+}