Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support out-of-band buffers in pickling #2665

Merged
merged 3 commits into from
Aug 23, 2023

Conversation

agoose77
Copy link
Collaborator

@agoose77 agoose77 commented Aug 22, 2023

Pickle 5 supports out-of-band data, which supports zero-copy round-trips with pickle.

@agoose77 agoose77 force-pushed the agoose77/feat-out-of-band-pickle branch from 3402831 to 53de149 Compare August 22, 2023 21:30
@codecov
Copy link

codecov bot commented Aug 22, 2023

Codecov Report

Merging #2665 (840cd5c) into main (0accfad) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files
Files Changed Coverage Δ
src/awkward/highlevel.py 76.28% <100.00%> (+0.17%) ⬆️

@agoose77 agoose77 temporarily deployed to docs-preview August 22, 2023 21:41 — with GitHub Actions Inactive
@agoose77 agoose77 marked this pull request as ready for review August 23, 2023 14:36
@agoose77 agoose77 changed the title feat: don't pack during pickle, support out-of-band buffers feat: support out-of-band buffers in pickling Aug 23, 2023
@agoose77
Copy link
Collaborator Author

This will break with placeholder arrays, but that's probably fine - we can either fix it in future, or explicitly ban placeholders in pickling (in lieu of dask serialisation).

Copy link
Member

@jpivarski jpivarski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm glad that it was this easy!

@agoose77 agoose77 enabled auto-merge (squash) August 23, 2023 14:39
@agoose77 agoose77 temporarily deployed to docs-preview August 23, 2023 14:59 — with GitHub Actions Inactive
@agoose77 agoose77 merged commit 12348fb into main Aug 23, 2023
34 of 37 checks passed
@agoose77 agoose77 deleted the agoose77/feat-out-of-band-pickle branch August 23, 2023 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants