7 ms·
I wouldn’t mind cpython performance improvements over language features. Specifically startup time. Py cli tools can easily take up to 300-600ms to start. Now,
by glic3rinu 7y ago
I wouldn’t mind cpython performance improvements over language features. Specifically startup time. Py cli tools can easily take up
to 300-600ms to start. Now, try to use them for scripting. A single script doing a bunch of calls to python clis has already several seconds of runtime penalty.
- paulddraper 7y agoI completely agree, but you'll notice similar startup overheads in almost all non-native languages: Java, Ruby, Node.js. I wonder if there is anything that can really be done, outside of something like Cython.
- Rotareti 7y ago> I wonder if there is anything that can really be done, outside of something like Cython. I compile my cli tools with nuitka [0], the resulting binaries take half the time to start. I find the difference quite notable. [0]: https://github.com/Nuitka/Nuitka https://github.com/Nuitka/Nuitka
- glic3rinu 7y agoThe interpreter loads reasonably fast, takes around 20-40ms. And it's even faster if "import site on initialization" is disabled. But startup time increases an order of magnitude once you start importing 'requests' and other common packages. Perhaps an option to turn imports lazy...
- deleted 7y ago[deleted]