Revision 0d06bac...

Go back to digest for 8th December 2013

Optimization in Development Tools

Milian Wolff committed changes in [kdevplatform] language/duchain/use.h:

Optimize: Make KDevelop::Use movable.

This type is movable and stored in KDevVarLengthArray,
which can make use of this trait for optimizations.

It is especially noticeable for the sorted insert
operations done in DUContext, where this function showed
up before in profiling data.

Now, we can simply memmove the Uses, which is much faster.

File Changes

Modified 1 files
  • language/duchain/use.h
1 files changed in total