Revision a0e8eb0...

Go back to digest for 15th December 2013

Optimization in Development Tools

Milian Wolff committed changes in [kdevplatform] /quickopen:

Optimize: Use a sorted QList<ProjectFilter> instead of a QMap.

The QMap approach has an overhead of at least 8 bytes per shared
QString key. The benchmarks also show that this version is faster
than the QMap version by approx. 40% according to
QuickOpenBench::benchProjectFileFilter_addRemoveProject.

Furthermore this will allow us to overwrite the sorting order to
take temporary files generated in out-of-source build directores
into account.

File Changes

Modified 2 files
  • /quickopen
  •   plugins/projectfilequickopen.cpp
  •   plugins/projectfilequickopen.h
2 files changed in total