Any way to refactor this?
John Salerno
johnjsal at NOSPAMgmail.com
Thu May 3 11:37:52 EDT 2007
Steven D'Aprano wrote:
> Bruno's code has two micro-optimizations. The first is to avoid
> looking up visual.cylinder each time (six times the number of loops) and
> instead only look it up once.
Oh I see. I was thinking the optimization had something to do with
*calling* the function less often, but that's different from the actual
lookup I suppose. :)
More information about the Python-list
mailing list