Benchmark
- Map insertion
- Element count: 100,000
- ~20% improvement in time
Before:
> time ./app
./app 0.84s user 0.05s system 94% cpu 0.945 total
> valgrind ./app
total heap usage: 2,414,147 allocs, 2,414,074 frees, 262,931,512 bytes allocated
After:
> time ./app
./app 1.09s user 0.03s system 95% cpu 1.168 total
> valgrind ./app
total heap usage: 2,446,293 allocs, 2,446,220 frees, 279,647,432 bytes allocated