An advent of code solution which takes seconds on Safari and minutes on Chrome (twitter.com) 8 points by bikeshaving 5y ago ↗ HN
[–] mjsir911 5y ago ↗ A friend ran into this for her solution in javascript, and the drastic speed up was replacing the javascript object with a `Map` object. const seen = new Map() with `seen.set` and `seen.get` replacing `[]` runs the code in 5s on node on my machine
1 comment
[ 2.8 ms ] story [ 16.6 ms ] thread