-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Performance tracker: Backtracking Parser #2762
Comments
Hi, |
You can benchmark the backtracking parser (with passing |
Hi @isidentical,
However looking at your comment I'm guessing this isn't what is expected. |
@tanvimoharir You're on the right track with using cProfile, but that benchmark merely imports the module, which isn't very interesting. What you'd want to benchmark instead is a run where Black formats some code that is heavy in use of
|
I tried running with -t py310 on a sample file with some
I will try to add more code and try formatting it. |
I inflated the sample file with more
|
The previous PRs successfully optimized the backtracking in the factor of 4X. It might make some sense to profile and see whether there are still other potential bottlenecks.
The text was updated successfully, but these errors were encountered: