Skip to content

Optimize selection creation

Michael Migliore requested to merge michael.migliore/paraview:sel-optim into master

Setting a new element in a vector property can take time because a vector is copied each time.
It starts to be noticeable after a few hundred, which is frequent with selections.
This MR introduces an AppendElements method in order to avoid useless copies.

Merge request reports