Skip to content

[3.15] gh-93618: Document the memory usage of the incremental parsers (GH-156763) - #157419

Merged
hugovk merged 1 commit into
python:3.15from
miss-islington:backport-e7a3937-3.15
Sep 15, 2026
Merged

hugovk merged 1 commit into
python:3.15from
miss-islington:backport-e7a3937-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

It was said that iterparse() can be useful for reading a large document
without holding it wholly in memory, but the tree is only built
incrementally, it is not freed incrementally. Document how to remove the
processed elements, and that a custom target does not build a tree at all.
(cherry picked from commit e7a3937)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com

…ythonGH-156763)

It was said that iterparse() can be useful for reading a large document
without holding it wholly in memory, but the tree is only built
incrementally, it is not freed incrementally.  Document how to remove the
processed elements, and that a custom target does not build a tree at all.
(cherry picked from commit e7a3937)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@read-the-docs-community

Copy link
Copy Markdown

@hugovk
hugovk merged commit 325e233 into python:3.15 Sep 15, 2026
39 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Sep 15, 2026
@miss-islington
miss-islington deleted the backport-e7a3937-3.15 branch September 15, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants