(no title)
hellohello2 | 1 year ago
EDIT: By that I meant, if you are trying to make something fast, wouldn't it make more sense to rewrite the critical path in a faster language rather than trying to improve Python's speed?
hellohello2 | 1 year ago
EDIT: By that I meant, if you are trying to make something fast, wouldn't it make more sense to rewrite the critical path in a faster language rather than trying to improve Python's speed?
LegionMammal978|1 year ago
You'll likely get much less of a speedup if your program is already optimized around CPython's slowness, e.g., by calling out to libraries like numpy as much as possible. But PyPy lets my simple scripts punch above their weight without any extra circumlocutions.
binary132|1 year ago
v3ss0n|1 year ago
Why rewrite when you can achieve same without any code changes? PyPy performance rivals golang .
In OP Case this could increase performance by 20x easily.
l33t7332273|1 year ago
My use case is MILP optimization. Constructing the model representation(the step necessary before calling some optimizer binary) is very slow in CPython, and Pypy makes development much less painful, since you often need to construct many models to get it right.
hellohello2|1 year ago