A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/301688.html below:

Silly function call lookup stuff?

Silly function call lookup stuff? Silly function call lookup stuff?Lucas Lemmens llemmens at gmx.net
Tue Sep 27 16:35:55 EDT 2005
Dear pythonians,

I've been reading/thinking about the famous function call speedup 
trick where you use a function in the local context to represent 
a "remoter" function to speed up the 'function lookup'.

"This is especially usefull in a loop where you call the function a 
zillion time" they say.

I think this is very odd behavior. 

Why isn't the result of the first function-lookup cached so that following
function calls don't need to do the function-lookup at all?

And if the context changes (an import-statement say) reset the
cached 'function-lookups'.

This way any function would only need to be looked up once.

L.









More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4