[pypy-dev] Why is pypy slower?

Armin Rigo armin.rigo at gmail.com
Wed Feb 13 10:39:22 EST 2019


Hi Joseph,

On Wed, 13 Feb 2019 at 16:19, Maciej Fijalkowski <fijall at gmail.com> wrote:
> On Wed, Feb 13, 2019 at 3:57 PM Joseph Reagle <joseph.2011 at reagle.org> wrote:
> > Is it possible for pypy to remember optimizations across instantiations?
>
> It is not possible.

A more constructive answer: in some cases, you can change the overall
approach.  The problem is likely not that it takes 2s instead of 1s to
run the program, but that this difference is multiplied many times
because you run the same program many times on different input data.
In that case, you may try to convert the single-use script into a
local "server" that is only started once.  Then you change your
``fe.py`` script to connect to it and "download" the result locally.
The point is that the server runs in a single process that remains
alive.


A bientôt,

Armin.


More information about the pypy-dev mailing list