Message152167
The frame object has a number of fields which belong to the generator object.
By creating a CoState struct, these fields can be moved to generator/threadstate where they belong.
The interpreter no longer has to swap around exception state whenever generators are entered/exited.
The frame object is made more compact, reducing allocation/deallocation overhead (although benchmarking showed no significant difference)
The attached patch reduces the code base by about 50 LOC overall. |
|
Date |
User |
Action |
Args |
2012-01-28 16:24:48 | Mark.Shannon | set | recipients:
+ Mark.Shannon |
2012-01-28 16:24:47 | Mark.Shannon | set | messageid: <1327767887.13.0.0676848614688.issue13897@psf.upfronthosting.co.za> |
2012-01-28 16:24:46 | Mark.Shannon | link | issue13897 messages |
2012-01-28 16:24:46 | Mark.Shannon | create | |
|