[issue45885] Specialize COMPARE_OP

2022-02-23 Thread Mark Shannon
Mark Shannon added the comment: New changeset 375a56bd4015596c0cf44129c8842a1fe7199785 by Brandt Bucher in branch 'main': bpo-45885: Don't un-adapt `COMPARE_OP` when collecting stats (GH-31516) https://github.com/python/cpython/commit/375a56bd4015596c0cf44129c8842a1fe7199785 -- ___

[issue45885] Specialize COMPARE_OP

2022-02-22 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher nosy_count: 2.0 -> 3.0 pull_requests: +29643 pull_request: https://github.com/python/cpython/pull/31516 ___ Python tracker ___

[issue45885] Specialize COMPARE_OP

2022-02-03 Thread Mark Shannon
Mark Shannon added the comment: New changeset 674ab66ebdf06f187e193a3d7bde13b71ba0f9af by Dennis Sweeney in branch 'main': bpo-45885: Add more stats for COMPARE_OP in specialize.c (GH-31040) https://github.com/python/cpython/commit/674ab66ebdf06f187e193a3d7bde13b71ba0f9af -- __

[issue45885] Specialize COMPARE_OP

2022-01-31 Thread Dennis Sweeney
Change by Dennis Sweeney : -- pull_requests: +29223 pull_request: https://github.com/python/cpython/pull/31040 ___ Python tracker ___ __

[issue45885] Specialize COMPARE_OP

2021-12-03 Thread Dennis Sweeney
Change by Dennis Sweeney : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue45885] Specialize COMPARE_OP

2021-12-03 Thread Mark Shannon
Mark Shannon added the comment: New changeset 03768c4d139df46212a091ed931aad03bec18b57 by Dennis Sweeney in branch 'main': bpo-45885: Specialize COMPARE_OP (GH-29734) https://github.com/python/cpython/commit/03768c4d139df46212a091ed931aad03bec18b57 -- __

[issue45885] Specialize COMPARE_OP

2021-11-24 Thread Mark Shannon
Mark Shannon added the comment: Is COMPARE_OP worth specializing by itself? Most comparisons are followed by a jump, and much of the overhead is in the branching around the choice of operator as well as pushing and popping (with inc/decrefs) a value that has only one bit of information (True

[issue45885] Specialize COMPARE_OP

2021-11-23 Thread Dennis Sweeney
Change by Dennis Sweeney : -- keywords: +patch pull_requests: +27972 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29734 ___ Python tracker ___ _

[issue45885] Specialize COMPARE_OP

2021-11-23 Thread Dennis Sweeney
New submission from Dennis Sweeney : Some specialization statistics: https://gist.github.com/sweeneyde/49cc3a9d074d56cf095cb0a42d13d7a4 Including 3 opcodes: COMPARE_OP_INT and COMPARE_OP_FLOAT and COMPARE_OP_STR (equality only) seems to give pretty good specialization numbers, better than ju