Skip to content
Discussion options

You must be logged in to vote

I've been thinking about this, too, since it's an operation that you'd want to have happen right before pickling an array, for instance. It wouldn't be too different in spirit from ak.materialized or ak.repartition, which gives you logically the same array, but changed internally for performance reasons.

I think the right name for such an operation would be "to pack," as in Pascal packed arrays, packing booleans into bits in NumPy, or Parquet bit-packing of small integers. (The alliteration of "packing for pickle" suggests itself.) It's not "compression" because it's not an entirely different encoding, just trimming off the unused parts.

Such a feature could be done entirely at the Python…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by nikoladze
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants