Skip to content

InputMakerForRoI: Reserve Vector

Eunju Moon requested to merge emoon/athena:reserve-vector into 24.0

Maximum size of the two vectors are fixed to the size of the outputHandle vector.

Additionally, two vector's final size also does not differ much from the outputHandle vector.

Out of 20282 attempts to make both of vectors, the vectors had exactly the same size as the reserved size 20266 times (99.9 %)

Reserving the size is more efficient as it avoids resizing.

Merge request reports

Loading