On Mon, 10 Jul 2017 02:35:37 +0200 Victor Stinner <victor.stin...@gmail.com> wrote: > > I already proposed to remove this benchmark: > https://mail.python.org/pipermail/speed/2017-April/000554.html > > *but* Antoine Pitrou mentionned that the cloudpickle project uses it. > > Maybe we should try to understand what's wrong with _pickle (C module) > for cloudpickle?
That's a good question, Victor. cloudpickle uses three hooks inside pickle.py's Pickler: - the "dispatch" dictionary - overriding the "save_global" method to support saving more objects (such as closures, etc.) - overriding the "save_reduce" method; this one doesn't seem really necessary, perhaps some leftover from previous attempts _pickle.c's Pickler does seem to allow a custom "dispatch_table", but it doesn't allow overriding "save_global". Of course, if _pickle.c were improved to allow such extensions, it would suddenly allow cloudpickle to be much more performant! Regards Antoine. _______________________________________________ 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