On 21.03.16 23:01, victor.stinner wrote:
https://hg.python.org/cpython/rev/aca4e9af1ca6
changeset: 100640:aca4e9af1ca6
user: Victor Stinner <victor.stin...@gmail.com>
date: Mon Mar 21 22:00:58 2016 +0100
summary:
hashtable.h now supports keys of any size
Issue #26588: hashtable.h now supports keys of any size, not only
sizeof(void*). It allows to support key larger than sizeof(void*), but also to
use less memory for key smaller than sizeof(void*).
If key size is compile time constant, Py_MEMCPY() and memcpy() can be
optimized in one machine instruction. If it is ht->key_size, it adds
more overhead. These changes can have negative performance effect.
It can be eliminated if pass a compile time constant to
_Py_HASHTABLE_ENTRY_READ_KEY() etc.
_______________________________________________
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