No issues with the tests but many with the guy (me) who tried to make changes in them ;)
i wanted to try a version with a switch replacing the array check to see perf differences but failed miserably for some reason...
finally: I got some tests working (Revision 7, you can delete others)
So I'm seeing what I expected: switch cases are faster than array searching.
Not from much though, but still with so few values.
i'm sorry : i've tried to run an alternate version of the first function and ended spamming tests :/
I'm also performance obsessed ;)
Awesome Dallgoot. What's the issue with the tests?
No issues with the tests but many with the guy (me) who tried to make changes in them ;)
i wanted to try a version with a switch replacing the array check to see perf differences but failed miserably for some reason...
finally: I got some tests working (Revision 7, you can delete others)
So I'm seeing what I expected: switch cases are faster than array searching.
Not from much though, but still with so few values.
Nice one man. Seen it.