Revision 889826

Go back to digest for 30th November 2008

Optimization in KDE Base

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

Optimize selectors more:
for this time, optimize how we choose selectors to check for possible match, do some smart precomputation and hashing so we could easily find only selectors with same id, class and local name as checked element saved a lot of CPU, 10x speed-up on my synthethic test with css based on facebook ones, and up-to 50% improvement in style computation for real life pages

File Changes

Modified 2 files
  • /trunk/KDE/kdelibs/khtml/css
  •   /cssstyleselector.cpp
  •   /cssstyleselector.h
2 files changed in total