Knee Cola
248b9cf3d0
perf: implement canvas pooling to reduce memory allocations
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>
2025-12-20 09:52:24 +01:00
..
2025-12-18 17:45:27 +01:00
2025-12-20 09:52:24 +01:00
2024-01-08 16:32:08 +01:00
2025-12-08 00:14:20 +01:00
2024-02-06 09:56:43 +01:00
2025-11-25 21:49:01 +01:00
2025-12-08 00:14:20 +01:00
2024-01-09 15:03:36 +01:00
2024-01-09 16:20:49 +01:00
2025-11-22 23:06:04 +01:00
2025-12-08 00:22:59 +01:00
2025-12-08 01:36:41 +01:00