java-topology/defects/bullet3/patch
russell@unturf.com db92c9428a bullet3/three.js: CWE-407 findings
bullet3-0001: btGhostObject::addOverlappingObjectInternal uses
findLinearSearch (O(N) pointer scan) on every broadphase pair-update
callback. With N objects overlapping a ghost, each tick is O(N²). Fix:
btHashMap<btHashPtr,int> shadow index → O(1) add/remove. 250x at N=500.

three-0001: NodeBuilder.addNode/addSequentialNode use Array.includes
(O(N)) per node during shader build traversal → O(N²). StackNode.generate
uses nodes.indexOf inside filter → O(N²). Fix: shadow with Set → O(1). 250x
at N=500.
2026-03-30 09:25:29 -04:00
..
bullet3-0001-ghost-object-overlapping-hashmap.patch bullet3/three.js: CWE-407 findings 2026-03-30 09:25:29 -04:00
bullet3-0001-ghost-object-overlapping-hashset.md undf: repair registry collision; 616 assigned (602-616 new); stamp all agent-added patches 2026-03-29 20:01:56 -04:00
bullet3-0002-soft-body-collision-disabled-hashset.md undf: repair registry collision; 616 assigned (602-616 new); stamp all agent-added patches 2026-03-29 20:01:56 -04:00