Bounding a classname query over a large entity set in the Source Engine without O(n) stalls
Goal I am working with the Source SDK (2013-era codebase) and need to run a filtered search for entities by classname or targetname across a map that may contain several thousand active entities. The documented approach iterates the global entity linked list linearly, which is O(n) per call, and I want to bound that cost per frame rather than scan everything