Skip to content

add performance hack to improve tokenize speed #993

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

Merged
merged 1 commit into from
May 6, 2021
Merged

add performance hack to improve tokenize speed #993

merged 1 commit into from
May 6, 2021

Conversation

asottile
Copy link
Member

@asottile asottile commented May 4, 2021

in profiles, this attributed somewhere between 4% and 14% of pycodestyle's execution time

this is committed upstream in cpython 3.10, I've also used this to get pretty significant performance boosts in my formatter tools which are based on tokenize-rt

in profiles, this attributed somewhere between 4% and 14% of pycodestyle's execution time
@asottile asottile merged commit aa3417b into PyCQA:master May 6, 2021
@asottile asottile deleted the perf_hack branch May 6, 2021 22:18
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