Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
gh-103285: Rewrite _splitlines_no_ff to improve performance#103307
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
gh-103285: Rewrite _splitlines_no_ff to improve performance#103307
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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.
Thank you!
Misc/NEWS.d/next/Library/2023-04-06-04-35-59.gh-issue-103285.rCZ9-G.rst OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
@isidentical hi could you take a look at the change when you have some time? Thanks! |
This was something I complained a lot in the past, thanks for taking a stab at it. |
No problem :) Let me know if you need me to change anything. |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
…CZ9-G.rstCo-authored-by: Nikita Sobolev <mail@sobolevn.me>
* Docstring* Check explicitly for maxline* \n\r preserve
6e7e73a to14a73a5CompareUh oh!
There was an error while loading.Please reload this page.
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.
Looks great, tested a bunch of scenarios involving consecutive\rs etc. and seems to imitate the behavior of the old implementation exactly. With the additional tests, this should be good to go!
Do we need the approval from@sobolevn for auto merge to take effect? |
Oh, it seems like |
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.
Thank you, this looks great!
Uh oh!
There was an error while loading.Please reload this page.
See comment and benchmark in#103285
ast.get_source_segmentis slower than it needs to be because it reads every line of the source. #103285