Speeding Up Global Variable Access in Python
[LFW]

Here is a summary of some of the proposals on the table. I drew some diagrams of a test case to force myself to work out the details of each proposal, and to attempt to illuminate them for discussion. Except for the "guido2b" images, each diagram shows the state of things after "import spam".

Jeremy 1: the dlict scheme
Jeremy's description
small GIF
big TIFF
Illustrator file

Guido 1: the original cellptr/objptr scheme
Guido's description
small GIF
big TIFF
Illustrator file

Ping 1: guido1 + a tweak to always use two dereferencing steps
Ping's description
small GIF
big TIFF
Illustrator file

Tim 1: timdicts and cells with shadow flags
Tim's description
small GIF
big TIFF
Illustrator file

Guido 2: the globals_vector scheme
Guido's description
small GIF, after import, after function call
big TIFF, after import, after function call
Illustrator file

copyright © by Ka-Ping Yee <ping@lfw.org> updated Tue 19 Feb 2002