QVector::append() is quite expensive, as each access checks if the array
needs to be detached or has to grow. Resizing the array and setting
the elements with an iterator is significantly faster.
Details
Details
- Reviewers
ngraham - Group Reviewers
Baloo - Commits
- R293:680b75a9a61a: [Coding] Avoid recurrent detach and size checks
valgrind --tool=callgrind baloosearch the_test.txt
Diff Detail
Diff Detail
- Repository
- R293 Baloo
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.