INADA Naoki <songofaca...@gmail.com> added the comment:

> STINNER Victor <vstin...@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)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34093>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to