Message371776
| Author |
vstinner |
| Recipients |
shihai1991, vstinner |
| Date |
2020年06月17日.21:36:12 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1592429772.13.0.764265282987.issue41006@roundup.psfhosted.org> |
| In-reply-to |
| Content |
I close the issue. Making more imports lazy doesn't bring much benefit.
--
With the 3 changes, runpy now imports 55 modules, instead of 70.
The startup time is 1.3x faster, 18 ms instead of 24 ms:
Mean +- std dev: [before] 23.7 ms +- 0.4 ms -> [after] 17.8 ms +- 0.6 ms: 1.33x faster (-25%)
--
Avoiding itertools and types doesn't bring much benefit:
Mean +- std dev: [after] 17.8 ms +- 0.6 ms -> [WIP] 17.2 ms +- 0.4 ms: 1.03x faster (-3%) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2020年06月17日 21:36:12 | vstinner | set | recipients:
+ vstinner, shihai1991 |
| 2020年06月17日 21:36:12 | vstinner | set | messageid: <1592429772.13.0.764265282987.issue41006@roundup.psfhosted.org> |
| 2020年06月17日 21:36:12 | vstinner | link | issue41006 messages |
| 2020年06月17日 21:36:12 | vstinner | create |
|