Hacker News new | ask | show | jobs
by Animats 1172 days ago
Using PyPy, which is a real compiler, might help.

That's doing spatial data processing by exaustive search, which is inherently slow. There are better algorithms. If the number of items to be searched is large, the spatial indices of MySQL could help.

3 comments

They tried PyPy at the beginning and it was 2x slower. Plausibly it would be better with additional optimization, but it's not cut and dry.
PyPy is a JIT compiler not a "real compiler", it requires warm up time to start optimizing code on runtime.
It does generate machine code, which CPython does not.
In other words, PyPy is not a AOT-compiler.
Did you read the article?