[Zope-CMF] cmf zpt_generic/search - sequence_length is very slow for large collections, len () is much faster.

Henryk Paluch hpaluch at gitus.cz
Thu Jan 6 02:50:23 EST 2005


Hi!

>If I understand your previous code, the difference between the two runs
>is what line you comment out. How then do you explain the different
>times for "log_me search took" when the code executed is the same (the
>changed line is *after* that log) ? Have you restarted Zope before each
>run to make sure a ZODB cache does is not involved ?
>  
>
Search function itself is quite fluctuant - it heavily depends on Zope 
cache state. I ran both kinds of scripts multiple times and extracted 
typical results.
However length computation yields consistent timings and it is the 
problem  I'm talking about....

-- 
---(c)--------------------------------------------------
GITUS, a.s. Spitalska 2a, 190 00 Praha 9, CZ
Henryk Paluch - analytik/programator
mailto: hpaluch at gitus.cz  http://www.gitus.cz
--------------------------------------------------------



More information about the Zope-CMF mailing list