[Performance] Opening a 409-slide PPTX creates 411 canvases and uses about 9.4 GB
Environment
GenOffice 0.10.915 on Windows 11 x64, 32 GB RAM, Intel integrated graphics.
Steps
- Open a PPTX containing 409 slides.
- Wait until slide 1 and thumbnails are visible.
- Inspect Electron app metrics and the Slides DOM.
Actual
- Three cold runs reached the first slide in 8.1–8.4 s.
- Total working set was 9.38–9.46 GB.
- GPU process: about 5.23 GB; Slides renderer: about 3.43 GB.
- The Slides DOM contained 411 canvas elements for a 409-slide deck.
Expected
Only visible/near-visible slides and thumbnails should be instantiated. Memory should remain bounded as slide count grows.
Suggested direction
Virtualize the thumbnail strip and slide canvases, decode media on demand, and add a long-deck memory regression test.
Reproduction file
The public source file is study guide - full.pptx (8,850,035 bytes, SHA-256 2dfba2440af68b276b97fc87abb17b96acfc5c80a87f2afb3070b4f24936076c). Its OOXML package contains 409 slides, 1,553 entries and 138 media files. This link returned HTTP 200 with the expected size and PPTX content type on 2026-09-23.
The first viewport showed slide 1 while 411 canvas elements already existed. This suggests that offscreen slides or thumbnails are initialized eagerly; the exact allocation owner still needs profiling.
Source: genspark-ai/genoffice