Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r81530:9dd3ef98eeae Date: 2016-01-03 02:22 +0100 http://bitbucket.org/pypy/pypy/changeset/9dd3ef98eeae/
Log: Minor performance improvement diff --git a/pypy/module/cpyext/longobject.py b/pypy/module/cpyext/longobject.py --- a/pypy/module/cpyext/longobject.py +++ b/pypy/module/cpyext/longobject.py @@ -238,10 +238,9 @@ c = intmask(bytes[n - i - 1]) else: c = intmask(bytes[i]) - digit = rbigint.fromint(c) result = result.lshift(8) - result = result.add(digit) + result = result.int_add(c) if signed and c >= 0x80: result = result.sub(ONERBIGINT.lshift(8 * n)) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit