szn

Bug 240 — O(W×H) matrix scanning for Sixel images during rendering

240. O(W×H) matrix scanning for Sixel images during rendering

File: src/server/render.zig:757–782 Severity: MEDIUM (performance) Status: ✅ FIXED

renderSixelImages loops over every cell in the grid (Width × Height) of every pane just to locate Sixel image anchors.

Impact: Excessive CPU time spent scanning grid matrices per frame when Sixel images are present.

Fix: Iterate directly over screen.sixel_images array (max 64 items) instead of scanning the full grid matrix.