13 Jan
2009
13 Jan
'09
10:02 p.m.
Johannes wrote:
pages with complex CSS feel a bit slow with the current css-prototype and gprof shows a huge number of CssSelector::match() calls. Attached is a patch that tries to improve that by:
* putting CssSelectors into hashtables so that we only need to match against a small subset of CssSelectors.
* avoiding repeated matches of CssSimpleSelectors against the same part of the doctree.
Please test and report if there is a real world speedup.
Wow! In the past, my best example had been pages on reddit.com that had at least maybe 300 comments. They had been unusably slow--although this would encourage a person not to waste time looking at reddit. Quite usable now.