[Python-Dev] this is what happens if you freeze all the modules required for startup
Brett Cannon
bcannon at gmail.com
Tue Apr 15 00:21:19 CEST 2014
More information about the Python-Dev mailing list
Tue Apr 15 00:21:19 CEST 2014
- Previous message: [Python-Dev] this is what happens if you freeze all the modules required for startup
- Next message: [Python-Dev] this is what happens if you freeze all the modules required for startup
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, Apr 14, 2014 at 6:15 PM, Skip Montanaro <skip at pobox.com> wrote: > On Mon, Apr 14, 2014 at 4:51 PM, Brett Cannon <bcannon at gmail.com> wrote: > > Thoughts? > > Interesting idea, but YAGNI? > Not at all. Think of every script you execute that's written in Python. One of the things the Mercurial folks say is hindering any motivation to switch to Python 3 is the startup performance. > > In my work environment (Python 2.7.2, all the heavy lifting done in > C++), startup costs are dominated by dynamic linking of all our C++ > libraries and their Boost wrappers: > Sure, but not everyone uses Boost or has long running processes where startup time is minuscule compared to the total execution time. -Brett > > % time python -c 'import tradelink.snake.v11_2 ; raise SystemExit' > > real 0m0.671s > user 0m0.405s > sys 0m0.044s > > % time python -c 'raise SystemExit' > > real 0m0.022s > user 0m0.011s > sys 0m0.009s > > Skip > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20140414/7c3b38a3/attachment.html>
- Previous message: [Python-Dev] this is what happens if you freeze all the modules required for startup
- Next message: [Python-Dev] this is what happens if you freeze all the modules required for startup
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list