-
Notifications
You must be signed in to change notification settings - Fork 30
Optimize comparisons to chars #268
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
Conversation
miniBill
commented
Dec 7, 2024

|
This is super weird, because I can reproduce tests being many time faster, but when I run the performance script ./find-regressions.sh --no-check ~/.elm/0.19.1/packages/then performance is about the same, maybe even worse |
24c3d16 to
eb088b1
Compare
| False | ||
|
|
||
| _ -> | ||
| True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it's time we extract this to a named function 😅
eb088b1 to
37a337b
Compare
|
Using the code in benchmark/ I also don't notice any improvement. In any case we should merge this. |
|
Right, I agree I think it's a difference between having Even if the final performance does not get improved (which it might, just a bit hard to measure), it makes tests run much faster, and that's a nice win for the people working on this project! Thank you @miniBill ❤️ |
|
@lue-bird do you think this is worth releasing? 🤔 |
|
Published in 7.3.8! |
|
I applied the same changes for elm-syntax-format's lenient parser and got a 5-10% improvement (with eol2 applied) and 3.x for non eol2. That's amazing. |