Another idea, that I have mostly implemented is compiled frames. We are going to
use our own type for "compiled frames", which then can be really good friend to
local and closure variables, and integrate with them, without loosing
performance.
These may then be attached to local variables, which will them keep the
reference together with the frame.
This way, integration with CPython will only improve, caching of frames can
be even more effective, and if we manage cells to be reused too, it may even
be faster for closure variables.
|