Message359182
> In the single-threaded case, the benchmark seems to show that for 64K+, performance is improved by dropping the GIL (which I'm guessing must be statistical noise, since there shouldn't be anything contending for it), which is my reasoning behind the 65536 threshold.
Yes, single-threaded case shouldn't affected by this change. Dropping GIL is just a very little overhead.
So you need to focus on multi-threaded case when considering threshold.
As far as seeing your result, 65536 threshold seems too small.
See 512*8192 case. It shows 1479->980 regression.
But I don't think your script shows real performance.
I updated your patch, and I saw small improvement on 512K and significant improvement on 1M. |
|
Date |
User |
Action |
Args |
2020-01-02 05:35:13 | methane | set | recipients:
+ methane, pitrou, vstinner, serhiy.storchaka, josh.r, remi.lapeyre, BTaskaya, bmerry |
2020-01-02 05:35:13 | methane | set | messageid: <1577943313.29.0.10051633763.issue36051@roundup.psfhosted.org> |
2020-01-02 05:35:13 | methane | link | issue36051 messages |
2020-01-02 05:35:12 | methane | create | |
|