You could always try to make a Python version of the C tuple hashing function[1] (requires the total # of elements) or PyPy's[2] (seems like it would allow true incremental hashing). API idea:hasher = IncrementalHasher()hasher.add(one_item_to_hash) # updates hasher.hash property with result# repeatreturn hasher.hash[1]: https://hg.python.org/cpython/file/dcced3bd22fe/ Objects/tupleobject.c#l331
[2]: https://bitbucket.org/pypy/pypy/src/ d8febc18447e1f785a384d52413a34 5d7b3db423/rpython/rlib/ objectmodel.py#objectmodel.py- 562 --
Ryan (ライアン)
Yoko Shimomura > ryo (supercell/EGOIST) > Hiroyuki Sawano >> everyone else
http://kirbyfan64.github.io/