piranna/AntiORM — Issue #5: Direct inyection of optimized functions
Author: piranna
Created: 2012-03-03 18:01:45+00:00
State: open

Since (almost) always a parsed method will be called from a place with the same kind of parameters (param names, dict, list), the first time that it's being parsed cache it and "overwrite" the call to the cached one, so there's no need to check the input data types on every call at this point of the program. On others places of the program the initial check will be done, resulting in new cached functions or givin a reference to a previously parsed one.