Current Situation
A lot of lists are allocated empty before an iteration loop :
same for vectors
this force list / vector re-allocation at each iteration which is a time costly operation leading to sub-optimal performance.
Expected
list shall be preallocated to their target size when possible.
vector shall be allocated with the right type and size when possible.
Current Situation
A lot of lists are allocated empty before an iteration loop :
same for vectors
this force list / vector re-allocation at each iteration which is a time costly operation leading to sub-optimal performance.
Expected
list shall be preallocated to their target size when possible.
vector shall be allocated with the right type and size when possible.