Message339623
> This patch makes it slow for small iterators
That is a one-off cost for the __length_hint__ of the range object specifically.
Objects with a known length (lists, sets, tuples) would not have that overhead.
I can run a more useful set of benchmarks against this.
So the +0.6us would be the same for ranges 8-16. Then less for 16-25, then again for 25-35 as the removal of the reallocation process has a more significant factor for larger ranges. |
|
Date |
User |
Action |
Args |
2019-04-08 11:47:48 | anthony shaw | set | recipients:
+ anthony shaw, ronaldoussoren, ncoghlan, methane, serhiy.storchaka, Aaron Hall |
2019-04-08 11:47:48 | anthony shaw | set | messageid: <1554724068.4.0.0519810762817.issue36551@roundup.psfhosted.org> |
2019-04-08 11:47:48 | anthony shaw | link | issue36551 messages |
2019-04-08 11:47:48 | anthony shaw | create | |
|