Quickest way to check if a number is in a set?
What is the fastest method to check if a number is in a list in Javascript?
I know about indexOf >= but it seems rather slow to me.
I have to perform millions of checks per second and the list is rather
short (max ~10 entries)
No comments:
Post a Comment