[issue37802] micro-optimization of PyLong_FromSize_t()

2019-10-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6314abcc08f5d0f3d3a915dc9455ea223fa65517 by Victor Stinner in branch 'master': bpo-37802: Fix a compiler warning in longobject.c (GH-16517) https://github.com/python/cpython/commit/6314abcc08f5d0f3d3a915dc9455ea223fa65517 -- nosy:

[issue37802] micro-optimization of PyLong_FromSize_t()

2019-10-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +16107 pull_request: https://github.com/python/cpython/pull/16517 ___ Python tracker ___

[issue37802] micro-optimization of PyLong_FromSize_t()

2019-09-12 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker ___

[issue37802] micro-optimization of PyLong_FromSize_t()

2019-09-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset c6734ee7c55add5fdc2c821729ed5f67e237a096 by Gregory P. Smith (Sergey Fedoseev) in branch 'master': bpo-37802: Slightly improve perfomance of PyLong_FromUnsigned*() (GH-15192)

[issue37802] micro-optimization of PyLong_FromSize_t()

2019-08-25 Thread Sergey Fedoseev
Sergey Fedoseev added the comment: Previous benchmarks results were obtained with non-LTO build. Here are results for LTO build: $ python -m perf timeit -s "from itertools import repeat; _len = repeat(None, 0).__length_hint__" "_len()" --compare-to=../cpython-master/venv/bin/python

[issue37802] micro-optimization of PyLong_FromSize_t()

2019-08-10 Thread Greg Price
Change by Greg Price : -- nosy: +Greg Price ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37802] micro-optimization of PyLong_FromSize_t()

2019-08-09 Thread Sergey Fedoseev
Change by Sergey Fedoseev : -- keywords: +patch pull_requests: +14924 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15192 ___ Python tracker ___

[issue37802] micro-optimization of PyLong_FromSize_t()

2019-08-09 Thread Sergey Fedoseev
New submission from Sergey Fedoseev : Currently PyLong_FromSize_t() uses PyLong_FromLong() for values < PyLong_BASE. It's suboptimal because PyLong_FromLong() needs to handle the sign. Removing PyLong_FromLong() call and handling small ints directly in PyLong_FromSize_t() makes it faster: $