Conversation
add some (hopefully) useful comments don't use regex when possible combine some if statements remove unnecessary `isTop` check admittedly the performance improvement is not very obvious.
perf improves a little bit
|
@juliangruber can you enable travis for this module too? 😄 |
|
(idk why it was disabled but it's enabled again) |
|
@isaacs seems good to you? |
|
i'm still in the process of reviewing the "general improvements" commit, just want to make sure this doesn't change anything that isn't covered by tests. this module is being used a lot, so improving it for 15 ops/s maybe isn't the best idea, but I don't want to turn down a good effort either so let's keep evaluating. |
|
No problem. I'm sure there are other places to improve in the code but I'd The main purpose of this is not too much of perf improvements. More just refactoring. On 22 Jul 2016 7:12 AM, "Julian Gruber" notifications@github.com wrote:
|
This increases about 40 op/s!
|
Using the cache and O(log(n)) algorithm for repeating |
add some (hopefully) useful comments
don't use regex when possible
combine some if statements
remove unnecessary
isTopcheckthis PR increases about 15 op/s
there is no logic changes