Message12546

Author filip.drozdowski
Recipients adamburke, filip.drozdowski
Date 2019-05-28.17:22:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559064151.58.0.211732218434.issue2776@roundup.psfhosted.org>
In-reply-to
Content
I've identified that doing module imports the first time in a newly spawned interpreter takes a long time, and hence I'm trying to save the state of a PythonInterpreter in an in-memory cache. I wasn't sure if reusing the same PySystemState would be thread safe, so I wanted to create a deep copy of it. Then, I would instantiate a new PythonInterpreter with a copy of cached local variables in the namespace (retrieved using getLocals()) and copy of cached PySystemState. Since PySystemState has many properties, I thought it would be safer to use serialization to get a deep copy.
History
Date User Action Args
2019-05-28 17:22:31filip.drozdowskisetmessageid: <1559064151.58.0.211732218434.issue2776@roundup.psfhosted.org>
2019-05-28 17:22:31filip.drozdowskisetrecipients: + filip.drozdowski, adamburke
2019-05-28 17:22:31filip.drozdowskilinkissue2776 messages
2019-05-28 17:22:31filip.drozdowskicreate