Rewrote my #adventofcode day 6 challenge in #rust from building an object tree with Rc + RefCell to a much simpler version that only uses a string to string mapping for the tree traversal.
Also threw in FNV as HashMap hasher for an extra speed bump. The difference is huge.
Part 1 is 61% faster (598 μs down to 233 μs).
Part 2 is 97% faster (40 ms down to 1 ms).
This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!