A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2006-May/065219.html below:

[Python-Dev] Returning int instead of long from struct when possible for performance

[Python-Dev] Returning int instead of long from struct when possible for performanceArmin Rigo arigo at tunes.org
Fri May 26 16:38:50 CEST 2006
Hi Bob,

On Thu, May 25, 2006 at 10:58:21PM +0000, Bob Ippolito wrote:
> Python ints are a heck of a lot faster to work with than Python longs  
> and have the additional benefit that psyco <http:// 
> psyco.sourceforge.net> can optimize the hell out of int but can't do  
> anything at all for long.

Alternatively, someone could implement in Psyco longs that are known to
fit in an int, and longs that are known to fit in an unsigned int, and
longs that fit in a C long long, etc...  Given a full range of long
variants, it would be easier and faster to emulate a CPython behavior
where the user-visible return type is consistent.

So, as far as Psyco is concerned I'm -1 on this change.  (I won't deny
its speed and memory benefits to plain CPython, though.)


Armin
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