Skip to content

perf: defer html.escape and zlib in console.py to export methods#9

Closed
KRRT7 wants to merge 1 commit intomasterfrom
perf/defer-html-zlib-console
Closed

perf: defer html.escape and zlib in console.py to export methods#9
KRRT7 wants to merge 1 commit intomasterfrom
perf/defer-html-zlib-console

Conversation

@KRRT7
Copy link
Copy Markdown
Owner

@KRRT7 KRRT7 commented Apr 9, 2026

Summary

Move from html import escape and import zlib from module level to inside export_html() and export_svg() respectively. These modules are only needed for HTML/SVG export operations, not for normal Console usage.

Testing

952 passed on CPython 3.9–3.14 and PyPy 3.10.

Move `from html import escape` and `import zlib` from module level
to inside export_html() and export_svg() respectively. These modules
are only needed for HTML/SVG export operations, not for normal
Console usage.
@KRRT7
Copy link
Copy Markdown
Owner Author

KRRT7 commented Apr 9, 2026

Superseded by the consolidated stacked PRs #12 + #13.

@KRRT7 KRRT7 closed this Apr 9, 2026
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.

1 participant