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

Carl Friedrich Bolz cfbolz at gmx.de
Wed Sep 7 16:26:11 EDT 2016


On 07/09/16 22:07, Yury V. Zaytsev wrote:
>> 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...
> 

Yes, that's correct: translating pypy with itself is significantly
faster.

The Mandelbrot fractal takes not many seconds to compute, so is not
really a problem.

Cheers,

Carl Friedrich


More information about the pypy-dev mailing list