Revision 67e991f...

Go back to digest for 11th August 2013

Optimization in Development Tools

Milian Wolff committed changes in [kdevelop] /cpp/codecompletion:

Optimize code completion for many items of potential match quality.

The match quality is not queried just once, but multiple times.
Thus it is quite noticeable when we cache that value after first read.
We do the same for the match types of the CodeCompletionContext
and further cleanup getMatchQuality(), esp. to reuse the same
TypeConversion for the given loop.

The biggest impact is in constructor calls, esp. of e.g. QString.

File Changes

Modified 4 files
  • /cpp/codecompletion
  •   languages/context.cpp
  •   languages/context.h
  •   languages/item.cpp
  •   languages/item.h
4 files changed in total