perf(core): стриминговый checkPageCount и потолок площади растра диаграмм #65

Merged
pjandro merged 1 commits from reduce-heap into main 2026-10-27 02:09:40 +03:00
Collaborator
No description provided.
ai added 1 commit 2026-10-27 02:08:39 +03:00
perf(core): снизить пиковый heap — стриминговый checkPageCount и потолок растра диаграмм
PR checks / web (pull_request) Successful in 40s
PR checks / java (pull_request) Successful in 1m4s
Main: tests, deploy, autotests / web (push) Successful in 31s
Main: tests, deploy, autotests / images-web (push) Successful in 29s
Main: tests, deploy, autotests / java (push) Successful in 1m24s
Main: tests, deploy, autotests / images-app (push) Successful in 39s
Main: tests, deploy, autotests / deploy (push) Successful in 1m33s
Main: tests, deploy, autotests / autotests (push) Successful in 42s
Main: tests, deploy, autotests / rollback (push) Has been skipped
f698354817
WordPdfValidator.checkPageCount больше не буферизует word/document.xml,
колонтитулы и docProps/app.xml в Map<String,byte[]>: один проход
ZipInputStream, счётчики накапливаются на месте (хелпер noClose глушит
close() сканеров). Потребление — O(одной части) вместо O(суммы XML-частей).

ChartRenderer/SmartArtRenderer: новый потолок MAX_PIXELS = 4096^2
(64 МБ ARGB); при превышении эффективный dpi понижается fitDpi
(uniform g.scale — геометрия и безразмерные пропорции не меняются).
24"-график: 208 МБ растра -> 64 МБ (dpi 300 -> 170.7).

Покрытие (JaCoCo)

Модуль Строки Ветви Порог строк
wordpdf-core 94.4% 85.1% 90%
wordpdf-app 93.4% 84.2% 90%
<!-- jacoco-coverage --> ## Покрытие (JaCoCo) | Модуль | Строки | Ветви | Порог строк | |---|---|---|---| | wordpdf-core | 94.4% | 85.1% | 90% | | wordpdf-app | 93.4% | 84.2% | 90% |
pjandro merged commit f698354817 into main 2026-10-27 02:09:40 +03:00
pjandro deleted branch reduce-heap 2026-10-27 02:09:40 +03:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: pjandro/java-word-pdf#65