This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mark.Shannon
Recipients Mark.Shannon
Date 2012-01-28.16:24:42
SpamBayes Score 0.0012000448
Marked as misclassified No
Message-id <>
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:48Mark.Shannonsetrecipients: + Mark.Shannon
2012-01-28 16:24:47Mark.Shannonsetmessageid: <>
2012-01-28 16:24:46Mark.Shannonlinkissue13897 messages
2012-01-28 16:24:46Mark.Shannoncreate