Return dirty-page preview patches

Project previews accept ?patch=1 and only include pages listed in changedPages.
Cache hits return an empty patch list. The web client applies sparse patches by
page index instead of rebuilding every page.

Add a two-page server test that edits only the second page and checks that the
patched payload contains exactly the changed page indices. Measure the arXiv
heading edit: 2 of 3 pages still changed (315 KB vs 396 KB full, 2.66 s), so
dirty-page transfer is in place but incremental layout latency is not.

Test count is 1073 (67 server).
This commit is contained in:
gloamxun committed 2026-10-27 21:18:39 +08:00
1 parent 86e95881e7
commit 9231c3a7d6
8 files changed
+90 -17

No files matched your search

+3 -3
View File
@@ -16,20 +16,20 @@ cargo test --workspace --offline
or run `./scripts/verify-route-d.sh`, which executes both.
The workspace currently passes **1072 tests**:
The workspace currently passes **1073 tests**:
| Suite | Tests |
| --- | --- |
| route-D unit (engine) | 444 |
| engine binary unit | 434 |
| server integration | 66 |
| server integration | 67 |
| v1 integration | 71 |
| pdfLaTeX oracle | 42 |
| route-D integration | 10 |
| engine/core unit | 4 + 1 |
Latest full run (web trial increment): `./scripts/verify-route-d.sh` passes
with fmt clean and **1072 tests** green.
with fmt clean and **1073 tests** green.
Latest live check (2026-10-27): the debug server served `examples/hello.tex`
from `target/debug/texrra serve`; `POST /preview` answered 200 with