jitpy - Library to embed PyPy into CPython

wxjmfauth at gmail.com wxjmfauth at gmail.com
Sun Dec 7 12:30:22 EST 2014


Le dimanche 7 décembre 2014 11:07:26 UTC+1, Stefan Behnel a écrit :
> Albert-Jan Roskam schrieb am 06.12.2014 um 21:28:
> > On Fri, Dec 5, 2014 8:54 PM CET Mark Lawrence wrote:
> >> For those who haven't heard thought this might be of interest
> >> https://github.com/fijal/jitpy
> > 
> > Interesting, but it is not clear to me when you would use jitpy instead
> > of pypy.
> 
> I think this is trying to position PyPy more in the same corner as other
> JIT compilers for CPython, as opposed to keeping it a completely separate
> thing which suffers from being "not CPython". It's a huge dependency, but
> so are others.
> 
> Being able to choose tools at this level is great, so if PyPy becomes yet
> another way to speed up the critical 5% of a CPython application, that's a
> good thing.
> 
> Stefan


You are not even measuring the level of hypocrisis
in your statement.

A smooth example:

>>> # py3.2
>>> timeit.repeat("(('abc'*1000) + '\u20ac')[:-1]")
[2.2924487840381302, 2.288211457519807, 2.288552523117434]
>>> 

>>> # Py3.3
>>> timeit.repeat("(('abc'*1000) + 'z')[:-1]")
[1.3677762326114475, 1.3570779579071655, 1.3561134433014104]
>>> timeit.repeat("(('abc'*1000) + '\u20ac')[:-1]")
[5.29018459683175, 5.267395034699291, 5.262552375821201]
>>> 




More information about the Python-list mailing list