Message12546
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. |
|
Date |
User |
Action |
Args |
2019-05-28 17:22:31 | filip.drozdowski | set | messageid: <1559064151.58.0.211732218434.issue2776@roundup.psfhosted.org> |
2019-05-28 17:22:31 | filip.drozdowski | set | recipients:
+ filip.drozdowski, adamburke |
2019-05-28 17:22:31 | filip.drozdowski | link | issue2776 messages |
2019-05-28 17:22:31 | filip.drozdowski | create | |
|