Dashboardopencode-lorewouldReindexForwardedOutput quadratic D…

wouldReindexForwardedOutput quadratic DoS

Category: gotcha
Confidence: 1.00
ID: 01a09f61-f138-7fb3-b96c-f7abff2d15bd
Project ID: 6f4be9ff-ed84-4cca-a9e7-732a0b0b8677
Cross-project: No
Recalled in other projects: 0
Source session: 1QlDwh91ws2eThRpC
Created: 2026-09-13 00:32:03
Updated: 2026-09-14 10:06:31

Content

Trap: recomputing the complete visible-output projection for every recall argument delta looks safest because any frame might affect coordinates, but sorting accumulated items and scanning forwarded indices per frame creates an algorithmic DoS within valid byte/frame limits. Fix: run the expensive check only when an output index first becomes recall-private, retain source indices on deferred events, and update projection state incrementally.

Move to: