Skip to content

perf(docx): avoid duplicate OMML scans - #2670

Open
AHA8805 wants to merge 1 commit into
microsoft:mainfrom
AHA8805:aha8805-silver-broccoli
Open

AHA8805 wants to merge 1 commit into
microsoft:mainfrom
AHA8805:aha8805-silver-broccoli

Conversation

@AHA8805

@AHA8805 AHA8805 commented Oct 7, 2026

Copy link
Copy Markdown

Summary

Avoid a second full BeautifulSoup traversal in DOCX math preprocessing by skipping nested oMath nodes already handled by their parent oMathPara block conversion.

Why

This reduces work on large documents by eliminating one extra tree walk while preserving the current conversion semantics.

Validation

  • python -m pytest tests/test_docx.py -q

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.

2 participants