[Setup] huge performance issues using Diazo

Kees Hink keeshink at gmail.com
Fri Mar 30 08:48:27 UTC 2012


> No, your selectors are not equivalent. The xpath "//*[contains(@class,
> 'template-section-view')]" matches any element with 'template-section-view'
> in the class. That could be  or equally
>
> The reason it is so slow is that every single rule you have is testing that
> there is any element in the page with that class. Those are body classes and
> you should be restrict them to the body element where they appear, i.e.:

Thanks Hector and Laurence for this thread.

We had the same problem, and re-writing our if-content selectors brought 
page load time down from 42 to 7 seconds.

Laurence, transformIterable is called many times, as in Hector's case. 
Do you still think this is wrong?

Kees


More information about the Setup mailing list