some timings which show mercurials way of "cached attributes" is slow

Ronny Pfannschmidt Ronny.Pfannschmidt at gmx.de
Mon Aug 11 04:07:47 CDT 2008


Hi,

I did some timings to compare the following. 
* current way
* using properties on the current way
* non-data descriptor based caching
* non-data descriptor based caching 
  using lambdas to keep the current api

The basic results are:
* non-data descriptors are always faster than the current way
* properties are always slower
* lambda results are always slower 

For code and my timings see the attachment.

Regards Ronny
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compare_cached_attributes.py
Type: text/x-python
Size: 2132 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20080811/9d479047/attachment.py 


More information about the Mercurial-devel mailing list