Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The values come from the result of many hash functions.

I actually need them sorted as well hence they are added to an array, and deduplicated.

I had a look and didn’t see any obvious way to eliminate them hence the initial function, and the subsequent faster one.



Only you can decide that, but it's always worth the ask IMO.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: