A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-November/083319.html below:

[Python-Dev] Optionally using GMP to implement long if available

[Python-Dev] Optionally using GMP to implement long if available [Python-Dev] Optionally using GMP to implement long if availableVictor Stinner victor.stinner at haypocalc.com
Mon Nov 3 21:41:33 CET 2008
Hi,

Le Monday 03 November 2008 18:56:37 Paul Miller, vous avez écrit :
> I've read some of the past discussion about including GMP into the
> python core and understand the reasons for not doing so.

Please, check this issue: http://bugs.python.org/issue1814

I patched Python3 to use GMP because I thaugh that GMP is much faster than 
Python for integer computation. The "problem" is that GMP target are integers 
much bigger than 10**100. As I remember, GMP has a special hack for very 
small integer: integer which can be stored in one CPU word, but it's not 
enough to speed up Python.

With my last patch, with GMP, Python is 2% *slower*.

My patch can be improved, but I expected +20% to +100% to no -2% :-/

And there is also the license issue...

-- 
Victor Stinner aka haypo
http://www.haypocalc.com/blog/
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4