[issue27535] Ignored ResourceWarning warnings leak memory in warnings registries

STINNER Victor report at bugs.python.org
Wed Nov 22 06:09:52 EST 2017


STINNER Victor <victor.stinner at gmail.com> added the comment:

> $ ./python -m perf compare_to ref.json patch.json 
> Mean +- std dev: [ref] 903 ns +- 70 ns -> [patch] 1.06 us +- 0.06 us: 1.17x slower (+17%)

We are talking about a difference of 157 nanoseconds. On the same laptop, a Python function call which does nothing already takes 76.6 ns +- 4.1 ns. So the overhead of my PR 4489 is the cost of two Python function calls which do nothing. Do you think that it's an inacceptable overhead?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue27535>
_______________________________________


More information about the Python-bugs-list mailing list