[Python-Dev] nested scopes confusion
Tue, 4 Dec 2001 15:41:29 -0500 (EST)
>>>>> "TH" == Thomas Heller <email@example.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
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.