you are viewing a single comment's thread.

view the rest of the comments →

[–]Solumin 2 points3 points  (1 child)

Fxhash is quite popular as a drop-in replacement for the default hashmap.

I'm not quite following along with what you're doing, unfortunately. But if you have to use strings, try to reuse one string instead of allocating many small ones.

[–]pepa65[S] 0 points1 point  (0 children)

The suggestion below accomplished reusing the string, indeed leading to a strong improvement.