This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 <>
In-reply-to <>
> STINNER Victor <> 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)
Date User Action Args
2018-07-12 08:34:42methanesetrecipients: + methane, vstinner, benjamin.peterson, serhiy.storchaka
2018-07-12 08:34:42methanelinkissue34093 messages
2018-07-12 08:34:42methanecreate