STINNER Victor added the comment: msg223186, Serhiy Storchaka about inline.patch: "Confirmed speed up about 20%. Surprisingly it affects even integers outside of the of preallocated small integers (-5...255)."
The optimization applies to Python int with 0 or 1 digit so in range [-2^30+1; 2^30-1]. Small integers in [-5; 255] might be faster but for PyLong_FromLong(). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21955> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com