[New-bugs-announce] [issue21556] try to use hashtable in pickle

Charles-François Natali report at bugs.python.org
Thu May 22 22:55:07 CEST 2014


New submission from Charles-François Natali:

This patch is an attempt at making pickle use Modules/hashtable.{h,c} instead of its hash table ad-hoc implementation for its memoization table.
I'm saying attempt, because although it works correctly, some benchmarks are actually slower.
I didn't profile it, so I don't know if it's due to the hashtable implementation, function call overheads, etc.

If we manage to bring this on par with pickle's ad-hoc implementation, it would probably be interesting to replace it. If not, then we can just drop this patch :-)

Also, there might be other places in the code base which might benefit from this generic hashtable, maybe.

----------
files: pickle_use_hashtable.diff
keywords: patch
messages: 218920
nosy: haypo, neologix, pitrou, serhiy.storchaka
priority: normal
severity: normal
status: open
title: try to use hashtable in pickle
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file35319/pickle_use_hashtable.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21556>
_______________________________________


More information about the New-bugs-announce mailing list