Message323098
| Author |
ncoghlan |
| Recipients |
barry, cykerway, ncoghlan, terry.reedy, vstinner |
| Date |
2018年08月04日.07:41:44 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1533368505.23.0.56676864532.issue34296@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
It isn't currently feasible to do anything along these lines, as the CPython runtime is highly configurable, so it's far from clear what, if anything, could be shared from run to run, and nor is it clear how the interpreter could check whether or not the current configuration settings matched those of the pre-warmed one.
However, the work taking place for PEP 432 (issue dependency added) will potentially make it possible to revisit this, as there may be a way to cache preconfigured interpreters in a fashion that means calculating the cache key from the current configuration and then loading the cached interpreter state is faster that imperatively initialising a fresh interpreter.
Even if it isn't possible to cache an entire interpreter state, there may at least be opportunities to optimise particular configuration substeps. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2018年08月04日 07:41:45 | ncoghlan | set | recipients:
+ ncoghlan, barry, terry.reedy, vstinner, cykerway |
| 2018年08月04日 07:41:45 | ncoghlan | set | messageid: <1533368505.23.0.56676864532.issue34296@psf.upfronthosting.co.za> |
| 2018年08月04日 07:41:45 | ncoghlan | link | issue34296 messages |
| 2018年08月04日 07:41:44 | ncoghlan | create |
|