Replace per-iteration canvas creation with a reusable canvas pool: - Pre-allocate 6 canvas objects (max needed for split=5 strategy) - Reuse canvases across all split strategies by resizing - Set unused canvases to 0×0 to free bitmap memory - Reduces allocations from ~36 to 6 objects (83% reduction) Benefits: - Lower memory footprint - Reduced GC pressure - Better performance (resize vs allocate) - More deterministic memory usage 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
13 KiB
13 KiB