bpo-46841: Improve the failure stats for `COMPARE_OP` by brandtbucher · Pull Request #31663 · python/cpython

brandtbucher · GitHub

Merged

Merged

Conversation

@brandtbucher
@brandtbucher

With the move to inline caching, jumps are getting a bit longer. This adds new category of COMPARE_OP failures for the (increasingly more common) case where a COMPARE_OP instruction is followed by an EXTENDED_ARG.

New stats for a full pyperformance run:

KindCountRatiounquickened73487390.4%specialization.deferred35937104821.7%specialization.deopt157300.0%hit128921097577.8%miss9430570.1%Specialization attempts

CountRatioSuccess2890834.8%Failure572338695.2%Failure kindCountRatioextended arg

2473174

43.2%not followed by cond jump125861222.0%float long67168211.7%set57924110.1%different types1655392.9%bool1370382.4%tuple1196322.1%other1155662.0%big int955471.7%bytes464810.8%baseobject373350.7%list226340.4%string7040.0%long float2010.0%

https://bugs.python.org/issue46841

Closed

26 tasks

Closed

Labels

None yet