Performance of int/long in Python 3

Cousin Stanley cousinstanley at gmail.com
Mon Mar 25 19:35:41 EDT 2013


Chris Angelico wrote:

> The Python 3 merge of int and long has effectively penalized
> small-number arithmetic by removing an optimization.
> ....
> The cost is clear. 
> ....

  The cost isn't quite as clear 
  under Debian Wheezy here ....

  Stanley C. Kitching
  Debian Wheezy

  python  inline  range_sum  forloop  forloop_offset

  2.7.3   3.1359  3.0725     9.0778   15.6475

  3.2.3   2.8226  2.8074    13.47624  13.6430 


# ---------------------------------------------------------

  Chris Angelico
  Debian Wheezy

  python  inline  range_sum  forloop  forloop_offset

  2.7.3   1.9276  1.9341     5.1463   5.1346

  3.2.3   2.8841  2.6586     7.6602   8.1182


-- 
Stanley C. Kitching
Human Being
Phoenix, Arizona




More information about the Python-list mailing list