[Python-Dev] What to intern (e.g. func_code.co_filename)?

Benjamin Peterson benjamin at python.org
Sun Feb 14 02:36:28 CET 2010


2010/2/13 Jake McGuire <mcguire at google.com>:
> I have a local patch, but wanted to see if anyone had ideas or
> experience weighing these tradeoffs.

Interning is really only useful because it speeds up dictionary
lookups for identifiers. A better idea would be to just attach the
same filename object in compiling and unmarshaling.



-- 
Regards,
Benjamin


More information about the Python-Dev mailing list