Message407526
Currently, the InterpreterFrame for a generator is allocated on the heap separately from the generator.
This means that 2 allocations are needed to create a generator, and an extra indirection is needed to get from the generator to the frame.
By embedding the frame in the generator, we only need one alloaction, we save an indirection *and* the code gets simpler: transferring the frame from generator to frame object is just a single memcpy. |
|
Date |
User |
Action |
Args |
2021-12-02 12:27:40 | Mark.Shannon | set | recipients:
+ Mark.Shannon |
2021-12-02 12:27:40 | Mark.Shannon | set | messageid: <1638448060.39.0.766103367856.issue45963@roundup.psfhosted.org> |
2021-12-02 12:27:40 | Mark.Shannon | link | issue45963 messages |
2021-12-02 12:27:40 | Mark.Shannon | create | |
|