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

py: use pre-compiled regexps #88

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

blueyed
Copy link
Contributor

@blueyed blueyed commented Aug 29, 2018

Before:

% time python py/vimlparser.py autoload/vimlparser.vim |md5sum                                                                                                          ⟳(c) ⟳(m) 🐍?
861997350d8e69dc32937d77afb5b931  -
python py/vimlparser.py autoload/vimlparser.vim  3.21s user 0.07s system 99% cpu 3.282 total
md5sum  0.00s user 0.00s system 0% cpu 3.282 total

After:

% time python py/vimlparser.py autoload/vimlparser.vim |md5sum                                                                                                         🐍?
861997350d8e69dc32937d77afb5b931  -
python py/vimlparser.py autoload/vimlparser.vim  2.94s user 0.04s system 99% cpu 2.979 total
md5sum  0.00s user 0.00s system 0% cpu 2.979 total

@tyru
Copy link
Member

tyru commented Sep 15, 2018

This seems to be on the right track for me (except failing tests).
@vim-jp/vim-vimlparser what do you think about this?

@tyru
Copy link
Member

tyru commented Mar 6, 2020

@blueyed Is this PR necessary even after #142 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants