[issue28866] Type cache is not correctly invalidated on a class defining mro()
Julien Palard
report at bugs.python.org
Sat Feb 18 05:43:24 EST 2017
Julien Palard added the comment:
Hi,
Tried again, this time getting some stats with MCACHE_STATS 1, to check if my patch is defeating the cache:
Without my patch:
$ time ./python performance/benchmarks/bm_chaos.py --worker -l1 -w0 -n1 --filename chaos.ppm --width=512 --height=512 --iterations 50000
chaos: Median: 2.51 sec
-- Method cache hits = 16581735 (99%)
-- Method cache true misses = 4092 (0%)
-- Method cache collisions = 28542 (0%)
-- Method cache size = 96 KB
With my patch:
$ time ./python performance/benchmarks/bm_chaos.py --worker -l1 -w0 -n1 --filename chaos.ppm --width=512 --height=512 --iterations 50000
chaos: Median: 2.53 sec
-- Method cache hits = 16582260 (99%)
-- Method cache true misses = 4096 (0%)
-- Method cache collisions = 28012 (0%)
-- Method cache size = 96 KB
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28866>
_______________________________________
More information about the Python-bugs-list
mailing list