-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvements #28
base: main
Are you sure you want to change the base?
Improvements #28
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" [email protected] 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
isTop
checkthis PR increases about 15 op/s
there is no logic changes