[Python-Dev] nested scopes confusion (original) (raw)
Jeremy Hylton jeremy@zope.com
Tue, 4 Dec 2001 15:41:29 -0500 (EST)
- Previous message: [Python-Dev] nested scopes confusion
- Next message: [Python-Dev] nested scopes confusion
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"TH" == Thomas Heller <thomas.heller@ion-tof.com> writes:
But the performance characteristics of class vs. function is really the bottleneck of your application? Are you sure that nested fuctions are really cheaper?
TH> Calling a.test() takes 3.3 microseconds, and c.test() takes 3.16 TH> microseconds.
So I 5% difference, based on a single set of measurements with one compiler/platform/etc., is enough to go out of your way to avoid classes? That seems conceivable for some very small set of applications, but not in general.
Jeremy
- Previous message: [Python-Dev] nested scopes confusion
- Next message: [Python-Dev] nested scopes confusion
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]