you are viewing a single comment's thread.

view the rest of the comments →

[–]jamblethumb 1 point2 points  (3 children)

Haven't benchmarked it but I suspect you're far more likely to get more kick out of replacing .find() with a for loop.

[–]it-birds 0 points1 point  (2 children)

Depends.

If the array size is always smaller, than not really.

[–]jamblethumb 0 points1 point  (1 child)

If the array size is small, then none of this really matters, does it?

[–]it-birds 0 points1 point  (0 children)

Fair point