Message321528
| Author |
methane |
| Recipients |
benjamin.peterson, methane, serhiy.storchaka, vstinner |
| Date |
2018年07月12日.08:34:42 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<CAEfz+TzhtHWf4C+vJmvu0JdZM=t540Mnm1J8MJ=9mUcpknSkqA@mail.gmail.com> |
| In-reply-to |
<1531382569.17.0.56676864532.issue34093@psf.upfronthosting.co.za> |
| Content |
> STINNER Victor <vstinner@redhat.com> added the comment:
>
> What is the time spent in marshal.dumps() at Python startup when Python has to create all .pyc files? For example "./python -c pass" in the master branch with no external dependency? My question is if the PR makes Python startup 5% slower or less than 1% slower.
When startup, Python does more than compile()+marshal.dumps().
And as I wrote above, it makes compile()+marshal.dumps() only 4% slower.
So startup must not be slower than 4%.
Additionally, it happens only once if pyc can be writable.
(I don't know if marshal.dumps() is called when open(cache_path, 'wb') failed) |
|