Revision 872272

Go back to digest for 19th October 2008

Optimization in KDE Base

Viacheslav Tokarev committed changes in /trunk/KDE/kdelibs/khtml:

- improve class style selectors performance by better using AtomicStrings
- optimize a lot of DOM core stuff (fix some regressions introduced with IDStrings)
- small code cleanups on manual benchmark that uses real life css (~200kb) from facebook

I see about 8x speed up from kde4.1.2 in normal html case,and about 3x - for more rare things like xhtml

File Changes

Modified 9 files
  • /trunk/KDE/kdelibs/khtml
  •   /css/cssstyleselector.cpp
  •   /css/parser.cpp
  •   /css/parser.y
  •   /misc/AtomicString.h
  •   /misc/StringHash.h
  •   /xml/dom_elementimpl.cpp
  •   /xml/dom_elementimpl.h
  •   /xml/dom_nodeimpl.cpp
  •   /xml/dom_nodeimpl.h
9 files changed in total