Message414391
> What I *think* is happening is that the inline cache takes the size of the function (in code units) from about 4800 to about 5200, crossing our threshold for quickening (currently set to 5000).
Yep, nailed it:
>>> len(list(dis.get_instructions(do_unpacking)))
4827
>>> len(list(dis.get_instructions(do_unpacking, show_caches=True)))
5251
>>> do_unpacking(1_000, range(10))
0.06478393300494645
>>> do_unpacking.__code__._co_quickened is None
True |
|
Date |
User |
Action |
Args |
2022-03-02 23:40:07 | brandtbucher | set | recipients:
+ brandtbucher, Mark.Shannon, pablogsal, neonene |
2022-03-02 23:40:07 | brandtbucher | set | messageid: <1646264407.6.0.696072513545.issue46841@roundup.psfhosted.org> |
2022-03-02 23:40:07 | brandtbucher | link | issue46841 messages |
2022-03-02 23:40:07 | brandtbucher | create | |
|