[issue18107] 'str(long)' can be made faster

2013-05-31 Thread Armin Rigo
Armin Rigo added the comment: Thanks, I missed it. Sorry for the noise. -- resolution: -> duplicate status: open -> closed ___ Python tracker ___ __

[issue18107] 'str(long)' can be made faster

2013-05-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue3451. -- nosy: +mark.dickinson, serhiy.storchaka versions: +Python 3.4 ___ Python tracker ___ __

[issue18107] 'str(long)' can be made faster

2013-05-31 Thread Armin Rigo
New submission from Armin Rigo: If you have in x some very large number, like 3**20, then the computation for 'str(x)' is sub-efficient. Nathan Hurst posted to the pypy-dev mailing list a pure Python algo that gives the same result in 2/3rd of the time (in either CPython or PyPy). We wou