Feature or enhancement
Proposal:
The concurrent.interpreters module for subinterpreters handles sharing/sending values across interpreters with direct sharing of some basic immutable types, and a fallback to pickling others. As an immutable container, tuples are supported (as long as all items are themselves shareable). Similarly, I think it would be good to support sharing frozendict without serialization (if keys & values are shareable).
Because dictionaries are so fundamental and common, having a better and more performant way to share such a mapping would significantly improve the experience of using concurrent.interpreters and InterpreterPoolExecutor.
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Feature or enhancement
Proposal:
The
concurrent.interpretersmodule for subinterpreters handles sharing/sending values across interpreters with direct sharing of some basic immutable types, and a fallback to pickling others. As an immutable container,tuples are supported (as long as all items are themselves shareable). Similarly, I think it would be good to support sharingfrozendictwithout serialization (if keys & values are shareable).Because dictionaries are so fundamental and common, having a better and more performant way to share such a mapping would significantly improve the experience of using
concurrent.interpretersandInterpreterPoolExecutor.Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response