[pypy-dev] Any known tricks or effort made to make the PyPy source code build faster?

Wang, Peter Xihong peter.xihong.wang at intel.com
Wed Sep 7 18:44:40 EDT 2016


That's a great tip, :-).  Just done with an experiment, and PyPy2 5.4.1-alpha0 cut down build time by 27% compared with CPython2.7.6
 
Thanks!

Peter


-----Original Message-----
From: Yury V. Zaytsev [mailto:yury at shurup.com] 
Sent: Wednesday, September 07, 2016 1:08 PM
To: Wang, Peter Xihong <peter.xihong.wang at intel.com>
Cc: William ML Leslie <william.leslie.ttg at gmail.com>; PyPy Developer Mailing List <pypy-dev at python.org>
Subject: RE: [pypy-dev] Any known tricks or effort made to make the PyPy source code build faster?

> On 30/08/2016 9:53 am, "Wang, Peter Xihong" 
> <peter.xihong.wang at intel.com> wrote:
> 
> By default, it appears most of the time during the build/compile 
> process, only 1 single CPU core is busy, signaling missing of parallel 
> compiling.  Is there any best known practice to make it faster?

Now that I think about it, there is yet another not obvious "trick" that I should have probably mentioned:

You should definitively be translating PyPy with PyPy itself (rather than CPython); even though it will still use only 1 core, the translation will greatly benefit from the JIT. It's been a very long while since I've last checked, but I wouldn't be surprised about a factor 2x speedup or so...

--
Sincerely yours,
Yury V. Zaytsev


More information about the pypy-dev mailing list