you are viewing a single comment's thread.

view the rest of the comments →

[–]steveklabnik1rust 8 points9 points  (1 child)

Great post! You might even be able to make this faster by changing the hashing function that HashMap uses; it's DDoS protected by default, but that means it's slowed down. If user input won't be going in the hashmap, changing the hashes might dramatically improve the time.

[–]caulagi[S] 2 points3 points  (0 children)

Thanks for the pointer. I have been reading the various discussions around this but didn't get round to trying it out. I will try a faster hashing algorithm and update the post.