Skip to content

perf(office): index ZIP part names for conversion - #979

Merged
shtse8 merged 2 commits into
mainfrom
prism/anymd-performance-20261030
Oct 30, 2026
Merged

shtse8 merged 2 commits into
mainfrom
prism/anymd-performance-20261030

Conversation

@shtse8

@shtse8 shtse8 commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

Office documents with many parts repeatedly scanned every ZIP entry when resolving slides, relationships and missing optional parts. Index decoded exact names and build the ASCII case fallback once, while preserving exact-case precedence, leading slashes and existing container limits.

On synthetic decks with 3,000 slides and 9,002 ZIP entries, 35 alternating release-mode conversion measurements per version improved the median from 73.7 ms to 44.1 ms (1.67×). Complete serialized output matched for 10, 100, 1,000 and 3,000 slides. These local measurements do not establish a production workload or a general speed guarantee.

Validation:

  • 147 native format unit tests and all 3 Office sample tests passed, including corrupted samples.
  • CLI output matched the released 8.5.5 binary on 8 PPTX, DOCX and XLSX fixtures.
  • MCP tool schemas and all 4 generated-deck read results matched 8.5.5; malformed ZIP input was rejected and the next valid read succeeded.
  • Added coverage for exact-case priority, ASCII fallback, leading slashes, missing entries, Unicode case distinctions, CP437 exact-name precedence and invalid ZIP input.
  • The build without native features passed 130 unit tests and failed the OCR-hint test; that same failure was reproduced on unchanged main, and the native suite passed that case. Workspace formatting also reports existing differences outside this file; formatting and diff checks pass for this file.

@shtse8
shtse8 enabled auto-merge October 30, 2026 09:07
@shtse8
shtse8 added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit 0ecff44 Oct 30, 2026
22 checks passed
@shtse8
shtse8 deleted the prism/anymd-performance-20261030 branch October 30, 2026 09:17
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