[Twisted-web] Re: [Nevow-commits] r1003 - Don't call getInterfaces over and over and over again

James Y Knight foom at fuhm.net
Fri Dec 24 19:38:35 MST 2004


On Dec 24, 2004, at 5:46 PM, Donovan Preston wrote:
> Modified:
>    branches/dp/optimizations/nevow/flat/ten.py
> Log:
> Don't call getInterfaces over and over and over again

I'm pretty sure zope interfaces already caches this operation, so doing 
a double cache may actually be detrimental. But, measurements, I 
guess...

> Modified:
>    branches/dp/optimizations/nevow/flat/flatstan.py
> Log:
> Optimize out some function calls (from property accesses)

Why does it need a _specials dict anyways? What's wrong with just using 
the instance dict for those?

James




More information about the Twisted-web mailing list