3 ms·
Nuitka's primary aim is performance, more so than self-contained deployment. It's a bit strange to pit Nuitka against "shipping with Docker". It's also surprisi
by daneel_w 4y ago
Nuitka's primary aim is performance, more so than self-contained deployment. It's a bit strange to pit Nuitka against "shipping with Docker". It's also surprising to hear that you saw no performance benefits at all - but then again, perhaps your application isn't that much Python but just a small bit of Python wrapped around fast libraries written in e.g. C?
- anentropic 4y agoI was under the impression that speedup with Nuitka was fairly modest and you probably get faster with pypy e.g. there's some benchmarks here https://pybenchmarks.org/ https://pybenchmarks.org/ and they mostly seem to go: Python 3 -> Nuitka (slightly faster) -> Cython (much faster) -> PyPy (faster again) So I always assumed the main advantage was more in producing a single binary And I'd consider that a big advantage over "shipping with Docker" for many use cases, e.g. building cli tools
- nerdponx 4y agoI wonder why Mypyc isn't in that benchmark.
- daneel_w 4y agoPython 3 really changed a lot, more than I realized. My experiences with Nuitka are against Python 2 from a couple of years back, at a point where Nuitka marketed itself using its performance increases and brought (at least) a 3-5x speedup on almost everything you threw at it.
- stainablesteel 4y agoi've not seen any performance boost for my code either via nuitka, using mostly pure python and a little numpy not that i mean to complain about having a working python compiler, i think its neat