[issue46055] Speed up binary shifting operators

2021-12-12 Thread Xinhang Xu
Xinhang Xu added the comment: I post a comment to the PR showing its performance improvement. I paste it below. I think the result not bad. - I use timeit to measure time costs and any other operators or calls are excluded. For each testcase, the former is dcd2796

[issue46055] Speed up binary shifting operators

2021-12-11 Thread Xinhang Xu
New submission from Xinhang Xu : See its PR. - Inspired by [bpo-44946](https://bugs.python.org/issue44946), I found there were no special shortcuts for shifting operation applied to "medium value" long object. So I modified CPython's VM to accelerate my python pro

[issue44946] Integer operations are inefficient for "medium" integers.

2021-12-10 Thread Xinhang Xu
Change by Xinhang Xu : -- nosy: +xuxinhang nosy_count: 3.0 -> 4.0 pull_requests: +28270 pull_request: https://github.com/python/cpython/pull/30044 ___ Python tracker <https://bugs.python.org/issu

[issue45880] Performance regression of Int object operators. (Python 3.11)

2021-11-23 Thread Xinhang Xu
New submission from Xinhang Xu : Hello. I'm working on a compute-bound project recently, so I tested several Python versions on my PC (Windows 10 64-bit), about Python's performance on operating Int object. All Python binaries are official distributions. Testcase #1 (simple xor op) Source