[Development] Question about QCoreApplicationData::*_libpaths

Bo Thorsen bo at vikingsoft.eu
Thu Jan 21 15:50:50 CET 2016

Den 21-01-2016 kl. 14:15 skrev Milian Wolff:
> On Donnerstag, 21. Januar 2016 05:44:05 CET Kevin Kofler wrote:
>> I consider reserve() to be a technical detail and a micro-optimization I
>> really should not have to bother with in 99+% of the cases.

That's how it should be.

> This is very wrong. In my experience with profiling applications, the most
> hotspots can be fixed by adding reserve to loops where the size is known or
> can be guessed. This has a tremendous effect on runtime speed, also for
> QVector using realloc

And this is how it is.

Bo Thorsen,
Director, Viking Software.

Viking Software
Qt and C++ developers for hire

More information about the Development mailing list