On 01.02.2016 21:35, Yury Selivanov wrote:
It's important to understand that if we have a lot of cache misses
after the code object was executed 1000 times, it doesn't make sense
to keep trying to update that cache. It just means that the code, in
that particular point, works with different kinds of objects.
So, the assumption is that the code makes the difference here not time.
That could be true for production code.
FWIW, I experimented with different ideas (one is to never
de-optimize), and the current strategy works best on the vast number
of benchmarks.
Nice.
Regarding the magic constants (1000, 20) what is the process of updating
them?
Best,
Sven
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com