Revision 576280

Go back to digest for 27th August 2006

Optimization in Development Tools

Hamish Rodda committed changes in /trunk/KDE/kdevelop/languages/cpp/parser/rpp:

Major speedup brought about by removing QTextStream.

I knew that QTextStream would be a bit of a compromise, but I had no
idea how much it actually was.

This shaves 50% off the time to fully parse a file, so the old code must
be at least an order of magnitude worse.

Anyway, in total I've taken 80% off the time to parse a file... woohoo!

File Changes

Modified 5 files
  • /trunk/KDE/kdevelop/languages/cpp/parser/rpp
  •   /pp-engine.cpp
  •   /pp-macro-expander.cpp
  •   /pp-stream.cpp
  •   /pp-stream.h
  •   /preprocessor.cpp
5 files changed in total