]> cloud.milkyroute.net Git - dolphin.git/commit
[FileItemRolesUpdater] Reserve space in two temporary lists
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Mon, 15 Feb 2021 16:34:01 +0000 (17:34 +0100)
committerStefan Brüns <stefan.bruens@rwth-aachen.de>
Mon, 15 Feb 2021 16:34:01 +0000 (17:34 +0100)
commit7c0b5c08cc97eded7755ca5cef9c7e5ba5c15537
tree2986c27d575a4520d50da480f1caec6d12306f36
parent68704c2a28eed5a066d76ed880dc1971b6afab04
[FileItemRolesUpdater] Reserve space in two temporary lists

Reserve sufficient space to avoid reallocation later. Overallocating
actually requires less memory than growing and copying it, and it
is freed immediately after anyway.
src/kitemviews/kfileitemmodelrolesupdater.cpp