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

Skip FoR decompression if min and scalar are 0 #1618

Merged
merged 3 commits into from
Dec 9, 2024
Merged

Conversation

robert3005
Copy link
Member

No description provided.

@robert3005 robert3005 enabled auto-merge (squash) December 9, 2024 13:17
@robert3005 robert3005 requested a review from gatesn December 9, 2024 16:11
validity,
)
if min == 0 && shift == 0 {
encoded
Copy link
Member

Choose a reason for hiding this comment

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

do we need to cast? (real question)

Copy link
Member Author

Choose a reason for hiding this comment

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

In this context we know that min is T so I think compiler will cast 0 to T implicitly

Copy link
Member

Choose a reason for hiding this comment

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

oh no, I mean cast encoded... is it the right dtype/ptype? since FoR converts to unsigned

Copy link
Member Author

Choose a reason for hiding this comment

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

The cast happens above when we extract the encoded array

@robert3005 robert3005 merged commit 4edfc74 into develop Dec 9, 2024
16 checks passed
@robert3005 robert3005 deleted the rk/fordecompress branch December 9, 2024 16:53
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