"optimizing out" getattr
Stephen Thorne
stephen.thorne at gmail.com
Wed Sep 14 23:09:07 EDT 2005
On 14 Sep 2005 19:46:44 -0700, Daishi Harada <daishi at gmail.com> wrote:
> Hi,
>
> I'd like to get the 'get2' function below to
> perform like the 'get1' function (I've included
> timeit.py results).
Do you have profiling results that show that a significant percentage
of your programs time is being spent inside this function?
If you don't, then you're wasting your time doing unnecessery optimisation.
--
Stephen Thorne
Development Engineer
More information about the Python-list
mailing list