mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
d76022a08f
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.