Files
Michael Gottesman d76022a08f [scale-test] Instrument DIMemoryUseCollector with LLVM statistics; add scale test documenting O(N²) stored-property scans
Adds NumStructEltBaseScans statistic to collectStructElementUses() in
DIMemoryUseCollector, which computes struct element base indices by
iterating over all preceding stored properties — O(k) work for property
k, summing to O(N²) over N properties in a non-delegating initializer.

The new di_struct_many_props.gyb scale test uses --invert-result to
document this known-bad quadratic scaling, following the pattern
established by the existing di_many_props and SendNonSendable scale tests.
2026-05-08 12:01:04 -07:00
..