[issue47115] Documentation inconsistency with the stable ABI

2022-03-25 Thread Jeremiah Gabriel Pascual
New submission from Jeremiah Gabriel Pascual : In https://docs.python.org/3/c-api/typeobj.html#static-types, it says that PyTypeObject isn't part of the stable ABI. Yet, in https://docs.python.org/3/c-api/type.html#c.PyTypeObject, it says that PyTypeObject IS part of the stable ABI. Which

[issue47012] Speed up iteration of bytes and bytearray

2022-03-14 Thread Jeremiah Gabriel Pascual
Change by Jeremiah Gabriel Pascual : -- nosy: +Crowthebird ___ Python tracker <https://bugs.python.org/issue47012> ___ ___ Python-bugs-list mailing list Unsub

[issue37907] speed-up PyLong_As*() for large longs

2022-03-13 Thread Jeremiah Gabriel Pascual
Jeremiah Gabriel Pascual added the comment: New benchmarks with the new changes: PyLong_AsSsize_t: Mean +- std dev: [orig] 10.3 us +- 0.6 us -> [modif] 9.03 us +- 0.61 us: 1.14x faster PyLong_AsSize_t: Mean +- std dev: [orig] 10.5 us +- 2.4 us -> [modif] 9.26 us +- 0.17 us: 1.13x

[issue37907] speed-up PyLong_As*() for large longs

2022-03-13 Thread Jeremiah Gabriel Pascual
Jeremiah Gabriel Pascual added the comment: Revisiting this 2+ year-old bug report, can I create another PR that implements the old PR's comments' suggestions? -- nosy: +Crowthebird ___ Python tracker <https://bugs.python.org/issue37