Revision 776931

Go back to digest for 24th February 2008

Optimization in KDE Base

Aaron J. Seigo committed changes in /trunk/KDE/kdebase/workspace/libs/plasma:

* eliminate the three search lists and have just one
* remove add*Match since they broke the pattern of usage (who owns the match? do you have to add it again? etc..)
* add addMatch to compliment addMatches for those runners that just ever have one match
* make the default SearchMatch type Possible rather than Exact (making Exact and Informational the exceptions, which matches usage patterns)
* const'ify the API a bit better

generally more performant, lower memory usage and clearer API having seen what is beign done in the runners. also makes it a bit easier to turn the Matches into a qt model

File Changes

Modified 8 files
  • /trunk/KDE/kdebase/workspace/libs/plasma
  •   /abstractrunner.cpp
  •   /abstractrunner.h
  •   /searchcontext.cpp
  •   /searchcontext.h
  •   /searchmatch.cpp
  •   /searchmatch.h
  •   /scripting/runnerscript.cpp
  •   /scripting/runnerscript.h
8 files changed in total