gh-148072: Cache pickle.dumps/loads per interpreter in XIData by jrfk · Pull Request #148125 · python/cpython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Include/internal/pycore_crossinterp.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Cache ``pickle.dumps`` and ``pickle.loads`` per interpreter in the XIData
framework, avoiding repeated module lookups on every cross-interpreter data
transfer. This speeds up :class:`~concurrent.futures.InterpreterPoolExecutor`
for mutable types (``list``, ``dict``) by 1.7x--3.3x.
62 changes: 56 additions & 6 deletions Python/crossinterp.c
Loading