Skip to content

Improve block codecs #492

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

Merged
merged 3 commits into from
Nov 28, 2022
Merged

Improve block codecs #492

merged 3 commits into from
Nov 28, 2022

Conversation

elshize
Copy link
Member

@elshize elshize commented Nov 20, 2022

Fixes #407

@elshize elshize self-assigned this Nov 20, 2022
@elshize elshize mentioned this pull request Nov 20, 2022
@codecov
Copy link

codecov bot commented Nov 20, 2022

Codecov Report

Base: 92.84% // Head: 92.82% // Decreases project coverage by -0.02% ⚠️

Coverage data is based on head (9ecfc72) compared to base (84fa537).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #492      +/-   ##
==========================================
- Coverage   92.84%   92.82%   -0.03%     
==========================================
  Files          92       91       -1     
  Lines        4332     4291      -41     
==========================================
- Hits         4022     3983      -39     
+ Misses        310      308       -2     
Impacted Files Coverage Δ
include/pisa/codec/maskedvbyte.hpp 100.00% <ø> (ø)
include/pisa/codec/simple8b.hpp 100.00% <ø> (ø)
include/pisa/codec/streamvbyte.hpp 100.00% <ø> (ø)
include/pisa/codec/varintgb.hpp 62.57% <ø> (-0.22%) ⬇️
include/pisa/block_freq_index.hpp 95.45% <100.00%> (+0.06%) ⬆️
include/pisa/codec/block_codecs.hpp 88.13% <100.00%> (-0.27%) ⬇️
include/pisa/codec/qmx.hpp 100.00% <100.00%> (ø)
include/pisa/codec/simple16.hpp 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@JMMackenzie JMMackenzie 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 happy for this to be approved given the related discussion in #407 but do we want to extend to all codecs in this PR, or address later?

@elshize
Copy link
Member Author

elshize commented Nov 21, 2022

do we want to extend to all codecs in this PR, or address later?

I was thinking of extending it; I should have some time next week to do it, and run some tests just to make sure all is good. I'll ask you to have another look when I push more changes.

@elshize elshize force-pushed the improve-block-codecs branch from ea55a81 to 2df6daa Compare November 24, 2022 20:52
@elshize
Copy link
Member Author

elshize commented Nov 25, 2022

I ran test for all modified codecs, looks like it's at least not worse, but mostly better performance now:

image

image

Raw data: results.tar.gz

So I'm pretty comfortable merging that.

@elshize elshize requested a review from JMMackenzie November 25, 2022 15:07
@elshize elshize force-pushed the improve-block-codecs branch from 2df6daa to f08e35f Compare November 25, 2022 15:08
@elshize elshize requested a review from amallia November 27, 2022 15:29
thread_local std::vector<uint32_t> inbuf(block_size);
thread_local std::vector<uint32_t> outbuf;
thread_local std::array<std::uint32_t, block_size> inbuf{};
thread_local std::vector<uint32_t> outbuf; // TODO: Can we use array? How long does it need
Copy link
Member

Choose a reason for hiding this comment

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

Shall we convert this TODO to an issue?

Copy link
Member Author

Choose a reason for hiding this comment

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

Will do.

@elshize elshize force-pushed the improve-block-codecs branch from f08e35f to 9ecfc72 Compare November 28, 2022 01:43
@elshize elshize merged commit 0f13c79 into master Nov 28, 2022
@elshize elshize deleted the improve-block-codecs branch November 28, 2022 23:11
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.

Improve block codecs
2 participants