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

Compressor recursion #73

Merged
merged 11 commits into from
Mar 6, 2024
Merged

Compressor recursion #73

merged 11 commits into from
Mar 6, 2024

Conversation

gatesn
Copy link
Contributor

@gatesn gatesn commented Mar 6, 2024

  • Compressors now return results.
  • All arrays are compressed using sampled compression. This means we take one sample from the very top-level array. This might not be quite right, and we may want chunked arrays to push-down sampling? We would need to add an ArrayCompression trait if we want arrays to be able to override this behaviour.
  • The bench is ignored for now since we now require as_contiguous to be implemented for many more array types. This will be FLUP.

@gatesn gatesn requested a review from robert3005 March 6, 2024 09:05
@gatesn gatesn enabled auto-merge (squash) March 6, 2024 09:42
}
},
);
let (_, compressed_sample) = sampling_result?;

return compressed_sample
Copy link
Member

Choose a reason for hiding this comment

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

you could put ok around the whole expression not inside it?

debug!(
"Compressed array with dtype: {} and encoding: {} using: {}",
"Compressed sample with dtype: {} and encoding: {}, using: {}",
Copy link
Member

Choose a reason for hiding this comment

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

at this point you're compressing the array and not the sample

@gatesn gatesn merged commit cf03b37 into develop Mar 6, 2024
2 checks passed
@gatesn gatesn deleted the ngates/compressor-results branch March 6, 2024 10:47
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.

2 participants