You Should Compile Your Python and Here’s Why
glyph.twistedmatrix.com
You Should Compile Your Python and Here’s Why
1–10 of 109 posts
Re: You Should Compile Your Python and Here’s Why
#21) During AoC I mostly used cpython and numpy. One day my code was running too slow so I fired up pypy. It ran even slower. Turns out numpy and pypy do not play well together in terms of performance.
2) I use matlab in work, and had some code that was slower than I liked, despite efforts to profile and optimise. I used the coder tool to compile it to C and got a 32x speedup. I was surprised, as matlab has a jit, so didn't expect a 32x performance delta, but there it is.
Re: You Should Compile Your Python and Here’s Why
#3Re: You Should Compile Your Python and Here’s Why
#4Some interesting tidbits on python code and compilation performance 1) During AoC I mostly used cpython and numpy. One day my code was running too slow so I fired up pypy. It ran even slower. Turns out numpy and pypy do not play well together in terms of performance. 2) I use matlab in work, and had some code that was slower than I liked, despite efforts to profile and optimise. I used the coder tool to compile it to…
Re: You Should Compile Your Python and Here’s Why
#5Some interesting tidbits on python code and compilation performance 1) During AoC I mostly used cpython and numpy. One day my code was running too slow so I fired up pypy. It ran even slower. Turns out numpy and pypy do not play well together in terms of performance. 2) I use matlab in work, and had some code that was slower than I liked, despite efforts to profile and optimise. I used the coder tool to compile it to…
What's AoC?
Re: You Should Compile Your Python and Here’s Why
#6Re: You Should Compile Your Python and Here’s Why
#7This `mypyc` sounds too good to be true, I wonder what the catch's.
Re: You Should Compile Your Python and Here’s Why
#8Re: You Should Compile Your Python and Here’s Why
#9This `mypyc` sounds too good to be true, I wonder what the catch's.
At least for now, I wouldn't use it in production.