Please sign in to comment.
Properly reserve place for arrays in line and polygon clipping routines
A QVector::clear() method completely reinitializes the object. Calling a QVector::reserve() before clear() is useless and causes big overhead at array append operations. Give ~6% perfomance gain. Signed-off-by: Yauhen Kharuzhy <firstname.lastname@example.org>
- Loading branch information
Showing with 4 additions and 4 deletions.