Skip to content

pickle5 support #2495

Closed
Closed

Description

@tjb900

Hi! Not really an issue, just a query with the aim of avoiding duplicated work. Our use case for distributed involves keys whose values are often lists of or dicts of (lists of, or dicts of, etc) numpy arrays, and unfortunately the current serialization scheme - while fantastic for numpy arrays not embedded in other objects - does not handle these nested structures particularly well.

Now that numpy 1.16 is out, the pickle5 protocol, and its backport (https://github.com/pitrou/pickle5-backport) would seem to provide a very elegant solution to efficiently communicating these kinds of structures by passing the large data arrays as out-of-band data that doesn't need to be embedded into the pickle bytestream.

Is work already underway somewhere on some remote branch to integrate this into distributed? If not, would such a PR be welcome? or should we wait for more experienced hands to tackle it?

Thanks in advance!

Activity

  1. mrocklin commented on Jan 31, 2019

    @mrocklin
    Member
  2. mrocklin commented on Feb 1, 2019

    @mrocklin
    Member
  3. jakirkham commented on May 29, 2020

    @jakirkham
    Member

    Reopening as I'd like us to track this as part of extending the work already done in PR ( #3784 ) to other Python versions.

  4. jakirkham commented on May 29, 2020

    @jakirkham
    Member

    Before adding this to Dask we would need pickle5 support in cloudpickle. A fair bit of work has been done in PR ( cloudpipe/cloudpickle#370 ) to handle that. Much thanks to @pierreglaser for making that possible!

  5. jacobtomlinson commented on Jun 4, 2020

    @jacobtomlinson
    Member

    @jakirkham is this now resolved with #3784?

  6. jakirkham commented on Jun 7, 2020

    @jakirkham
    Member

    No this is something different. It would require PR ( #3849 ) and PR ( cloudpipe/cloudpickle#370 ) (plus a release of cloudpickle) to resolve.

  7. jakirkham commented on Jul 1, 2020

    @jakirkham
    Member

    Alright I think PR ( #3849 ) should be ready for review. Please let me know what you think 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions