Re:Python-based compiler achieves orders-of-magnitude speedups
by nerdponx on Wednesday March 15, 2023 @07:55AM
(#35166853)
It's a little sad because PyPy literally is written in (a restricted subset of) Python, hence the name.
[ Parent
| on HN ]
Re:Python-based compiler achieves orders-of-magnitude speedups
by v3ss0n on Wednesday March 15, 2023 @08:31AM
(#35167260)
And it is severely underrated. Even though performance gain is aevrate around 4x-20x. Used in production and memory usage is also about 1/6th of CPython. Can get 10x perfromance easily in many cases.
Re:Python-based compiler achieves orders-of-magnitude speedups
by ddorian43 on Wednesday March 15, 2023 @08:42AM
(#35167398)
> Used in production and memory usage is also about 1/6th of CPython
I thought it would have higher memory usage? (based only on reading)
Re:Python-based compiler achieves orders-of-magnitude speedups
by smolder on Wednesday March 15, 2023 @09:45AM
(#35168236)
I suspect their relative memory efficiency depends on the size of the program and the size of the data it's processing.
Re:Python-based compiler achieves orders-of-magnitude speedups
by chc on Wednesday March 15, 2023 @11:28AM
(#35169797)
Somewhat paradoxically, PyPy always uses more memory for programs with small working sets, but can use less memory for programs with large working sets. 1/6 is a lot more extreme than I would have expected, though.
Re:Python-based compiler achieves orders-of-magnitude speedups
by rurban on Friday March 17, 2023 @01:54AM
(#35193667)
No, it has drastically less memory requirements. It's very similar to my perl compiler, and even in non-optimizing mode it uses much less memory. In optimizing mode it's almost the same as this one. Just ~20 years older.
Re:Python-based compiler achieves orders-of-magnitude speedups
by avinassh on Wednesday March 15, 2023 @09:44AM
(#35168225)
I experimented with SQLite, trying to insert many rows in under a minute. I ran my script with PyPy, with zero changes and it was 4x times faster!
code here: https://github.com/avinassh/fast-sqlite3-inserts
my blog post: https://avi.im/blag/2021/fast-sqlite-inserts/
Re:Python-based compiler achieves orders-of-magnitude speedups
by avgcorrection on Wednesday March 15, 2023 @05:55PM
(#35175270)
What does “literally” buy you here?