Skip to content

Conversation

jedwards1211
Copy link

Just an idea, I don't know if there are any ramifications to this, but according to my jsperf test this is 58% faster for num <= 5 👍

Just an idea, I don't know if there are any ramifications to this, but according to [my jsperf test](https://jsperf.com/repeat-stream-optimization) this is 58% faster for `num <= 5` 👍
@jedwards1211 jedwards1211 changed the title use switch (num) to cover more common cases use switch (num) to cover more common cases and improve perf Dec 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant