python code optimization

Darius Kučinskas d.kucinskas at gmail.com
Fri Dec 30 09:41:48 EST 2005


Hi,

I know that sometimes optimization is not good idea.
So I want to know what you think about this one:

we have code like this:
tables = []
for i in ... :
    tables.extend(...)

we optimize code like this:
tables = []
pfTablesExtend = tables.extend
for i in ... :
    pfTablesExtend(...)

I what to know is this bad idea? Say you opinion about that!

--
Best Regards
Darius Kučinskas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20051230/f3dd85a0/attachment.html>


More information about the Python-list mailing list