-
-
Notifications
You must be signed in to change notification settings - Fork 739
Faster to import std.regex, by lazy eval of wordMatcher #5942
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
Thanks for your pull request, @DmitryOlshansky! Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. |
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.
Nicely done
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.
Awesome!
Woohoo! |
Credits go to @andralex actually |
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.
noice
Looks like |
@CyberShadow would be so nice to have that kind of information nicely visible on the website! "The upfront time cost of importing std modules" |
After:
▶ time dmd test_case.d
dmd test_case.d 0.24s user 0.03s system 98% cpu 0.269 total
▶ gco master
Switched to branch 'master'
Before:
▶ time dmd test_case.d
dmd test_case.d 1.10s user 0.12s system 99% cpu 1.228 total