[issue40988] singledispatchmethod significantly slower than singledispatch

2020-11-09 Thread mental
Change by mental : -- keywords: +patch nosy: +mental nosy_count: 1.0 -> 2.0 pull_requests: +22112 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23213 ___ Python tracker

[issue40988] singledispatchmethod significantly slower than singledispatch

2020-06-15 Thread Federico Caselli
New submission from Federico Caselli : The implementation of singledispatchmethod is significantly slower (~4x) than the normal singledispatch version Using timeit to test this example case: from functools import singledispatch, singledispatchmethod import timeit class Test: