-
-
Notifications
You must be signed in to change notification settings - Fork 30k
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
bpo-31675: Fix memory leaks in Tkinter's methods splitlist() and split() #3866
bpo-31675: Fix memory leaks in Tkinter's methods splitlist() and split() #3866
Conversation
when pass a string larger than 2 GiB. Decrease memory requirements for Tcl's bigmem tests.
I wrote a patch using "et#" PyArg format to prevent one strlen(), but I don't think that it's worth it. I expect that most proceeded strings are smaller than 100 characters, and strlen() is heavily optimized ;-)
|
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.
LGTM.
Before creating this PR I wrote a patch which got rid of "et" and creating a temporary copy on the heap. But I think it should be only in 3.7. As a bug fix I choose simpler solution. |
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 2.7, 3.6. |
GH-3874 is a backport of this pull request to the 3.6 branch. |
…d split() (pythonGH-3866) when pass a string larger than 2 GiB. Decrease memory requirements for Tcl's bigmem tests. (cherry picked from commit 27c623c)
Sorry, @serhiy-storchaka, I could not cleanly backport this to |
…d split() (pythonGH-3866) when pass a string larger than 2 GiB. Decrease memory requirements for Tcl's bigmem tests.. (cherry picked from commit 27c623c)
GH-3876 is a backport of this pull request to the 2.7 branch. |
when pass a string larger than 2 GiB.
Decrease memory requirements for Tcl's bigmem tests.
https://bugs.python.org/issue31675