[Zope3-dev] Re: AdapterLookup C optimizations 'timeit' benchmarks

Tres Seaver tseaver at palladion.com
Fri Aug 5 10:34:27 EDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stephan Richter wrote:
> On Friday 05 August 2005 09:46, Benji York wrote:
> 
>>>By my estimations(i hope i'm not wrong :) C version gives ~20-26% speed
>>>up for different methods.
>>
>>Running the functional tests for a Zope 3 based systems with 434 tests
>>yielded (best of 3) a time of 1:12.51 for the trunk and 1:12.32 for the
>>branch.  That's about a 0.25 percent improvement.
> 
> 
> That's a bad argument. Several projects only use zope.interface and its 
> adapter registry (for example twisted). For them a 20-26% improvement for the 
> adapter lookup would be significant. Just because other parts of Zope 3 are 
> even slower and use more time than the adapter lookup, it does not have to 
> mean that this is a bad/insufficient improvement.

The tradeoff is complexity / loss of maintainability vs. speedup.  If
Benji's measurements hold up, we would be taking on the burden of
maintaining a parallel C implementation (in sync with the "canonical" C
version) within our project, for the (possible) benefit to other projects.


Tres.
- --
===================================================================
Tres Seaver          +1 202-558-7113          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC83jz+gerLs4ltQ4RAgMRAKDByKeCdJj1LKGTBkW/1FyhmMitaACgvVnB
Kr0peJPZ4AE7NWIn/8uK/BE=
=a4hT
-----END PGP SIGNATURE-----



More information about the Zope3-dev mailing list