On January 21, 2016 3:51:09 PM Bo Thorsen <[email protected]> wrote:
> 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. > make my_work_as_I_am_going_home I tried it in camel case but that was not working. :-p > Bo Thorsen, > Director, Viking Software. > > -- > Viking Software > Qt and C++ developers for hire > http://www.vikingsoft.eu > _______________________________________________ > Development mailing list > [email protected] > http://lists.qt-project.org/mailman/listinfo/development -- Sent from cellphone, sorry for the typos _______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
