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 <1327767887.13.0.0676848614688.issue13897@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-01-28 16:24:48Mark.Shannonsetrecipients: + Mark.Shannon
2012-01-28 16:24:47Mark.Shannonsetmessageid: <1327767887.13.0.0676848614688.issue13897@psf.upfronthosting.co.za>
2012-01-28 16:24:46Mark.Shannonlinkissue13897 messages
2012-01-28 16:24:46Mark.Shannoncreate