Skip to content

gh-162285: Consume XML-RPC character data once per element - #162287

Merged
carljm merged 3 commits into
python:mainfrom
woodruffw-forks:ww/fix-162285
Nov 24, 2026
Merged

carljm merged 3 commits into
python:mainfrom
woodruffw-forks:ww/fix-162285

Conversation

@woodruffw

@woodruffw woodruffw commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

For nested <string> elements, each closing tag joined the same text fragments and retained another copy on the value stack. Clear the fragments after joining them to avoid quadratic memory use.

Closes #162285.

For nested <string> elements, each closing tag joined the same text
fragments and retained another copy on the value stack. Clear the
fragments after joining them to avoid quadratic memory use.
@sethmlarson

Copy link
Copy Markdown
Contributor

cc @serhiy-storchaka

Comment thread Lib/test/test_xmlrpc.py Resolved
Signed-off-by: William Woodruff <william@yossarian.net>
Signed-off-by: William Woodruff <william@yossarian.net>
@woodruffw
woodruffw requested a review from carljm November 23, 2026 23:38
@carljm
carljm merged commit ec053fe into python:main Nov 24, 2026
102 of 104 checks passed
@woodruffw
woodruffw deleted the ww/fix-162285 branch November 24, 2026 22:47
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.

xmlrpc.client: quadratic memory use with nested string elements

3 participants