Re: Silly function call lookup stuff?

2005-09-27 Thread Lucas Lemmens
On Tue, 27 Sep 2005 13:56:53 -0700, Michael Spencer wrote: > Lucas Lemmens wrote: >> 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&q

Re: Silly function call lookup stuff?

2005-09-27 Thread Lucas Lemmens
On Tue, 27 Sep 2005 22:41:22 +0200, Fredrik Lundh wrote: > Lucas Lemmens wrote: > >> 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 cha

Silly function call lookup stuff?

2005-09-27 Thread Lucas Lemmens
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