Commit Graph
2 Commits
Author SHA1 Message Date
gloamxun d124c646a1 Serialise only changed pages for patch previews
render_json now accepts an optional page whitelist. The new
project_preview_patch_json_with_images path passes changedPages before building
page SVGs, instead of serialising all pages and filtering afterwards in the
server. Cache hits still use the old filter helper.

Add scripts/bench-preview.py: repeated buffer edits against a running server,
reporting HTTP/server latency, bytes and changedPages. Measure release builds:
article-basic 37.5 ms (one page), arXiv late edit p50 199 ms / p95 222 ms with
one changed page at 175 KB, arXiv heading edit ~480 ms. This is a solid
improvement over the debug numbers previously quoted, but the 10-page <100 ms
target remains unmet.

TEXRRA_PROFILE=1 now gates the geometry/paragraph/before-render timings. Test
count is 1073 (67 server).
2026-10-27 21:36:01 +08:00
gloamxun dff0483bca Add a verification script and record live smoke evidence
scripts/verify-route-d.sh runs cargo fmt --check and the full offline workspace
test suite from the repository root. The status document points at the script
and records a live check of the debug server: POST /preview answered 200 with
X-Preview-Engine: route-d, one page and no warnings, and POST /api/route-d/pdf
answered 200 with a PDF body.
2026-10-27 03:58:44 +08:00