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 <rep...@bugs.python.org>
<http://bugs.python.org/issue21556>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to