Skip to content
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

Lazily create regular expressions. #1

Closed
meh opened this issue Jul 4, 2017 · 3 comments
Closed

Lazily create regular expressions. #1

meh opened this issue Jul 4, 2017 · 3 comments

Comments

@meh
Copy link
Collaborator

meh commented Jul 4, 2017

Currently 60/70% of the really slow initialization time is spent compiling regular expressions which may never be used, lazily creating them might be a good idea.

@meh meh added the enhancement label Jul 4, 2017
@yannleretaille
Copy link
Contributor

how long is the total init time on your machine?

@meh
Copy link
Collaborator Author

meh commented Jul 5, 2017

Way longer than I remembered, it's around 1.3 seconds.

@meh
Copy link
Collaborator Author

meh commented Jul 7, 2017

This is done, times are down to 0.2 seconds, most of it is probably the actually executable initialization.

@meh meh closed this as completed Jul 7, 2017
rubdos pushed a commit that referenced this issue Mar 29, 2023
Co-authored-by: yuhaixin.hx <yuhaixin.hx@bytedance.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants