Message45298
Logged In: YES
user_id=4771
(Side note first: I'm not sure 'builtins = back->f_builtins'
is right.)
Is the whole subclassing complexity worth the effort, given
that the invariants of light frames only seem to be that
four specific fields are null? Changing the type of an
object under Python code's feet is calling for troubles.
Moreover it is bound to break code that expect
'type(frame)==FrameType', even if such code can be
considered bad style.
Moreover it requires a number of hacks here and there --
e.g. you turn a light frame into a "heavy" frame when
f_trace is set; is it on purpose that you don't do it when
f_locals is set?
I cannot seem to get reliable performance results on my
machine, but maybe you want to compare with the attached
patch which speeds up the regular PyFrame_New by putting
stronger invariants on all the frames in the free_list.
|
|
Date |
User |
Action |
Args |
2007-08-23 15:32:04 | admin | link | issue876206 messages |
2007-08-23 15:32:04 | admin | create | |
|