Skip to content

Make the quantized glyph cache tier the default unless it has a major drawback #548

Closed

Description

@michaelstonis

#370 added a glyph cache to the software rasterizer with two tiers. The exact tier (default) is bit-identical to uncached rendering. The quantized tier (RenderOptions.WithGlyphPositioning) snaps glyph origins to a subpixel grid, so cached coverage can be reused across positions: about 1.7x faster per tile on text-heavy pages.

The owner wants quantized to be the default unless it has a major drawback.

Done when

  • Drawbacks are measured and listed in the PR: pixel differences against the exact tier on the pdf.js corpus and the golden images (how many pages, the largest difference), the effect on cross-platform bit-identical rendering (Software rendering is bit-identical on every platform #233), memory, and speed.
  • If there is no major drawback, quantized becomes the default, exact stays available through WithGlyphPositioning, golden images are re-recorded, and the release notes list it as a behavior change.
  • If there is one, the PR records why exact stays the default, and the issue is closed with that finding.

Activity

  1. added
    area:rendering
    phase:7
    track:7B-hardening
    perf
    in-progress
    on Nov 17, 2026
  2. michaelstonis commented on Nov 17, 2026

    @michaelstonis
    OwnerAuthor

    Merged into spec/33-broadside-v1 via #550.

  3. removed
    in-progress
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:renderingperfphase:7track:7B-hardening

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions