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

Small improvements of bulk decompression #5772

Merged
merged 1 commit into from
Jul 6, 2023

Conversation

akuzm
Copy link
Member

@akuzm akuzm commented Jun 9, 2023

Do some cleanup and support decompression in the reverse direction.

In tsbench it improves the first/last queries, by using the old sizes for the per-batch memory context: https://grafana.ops.savannah-dev.timescale.com/d/fasYic_4z/compare-akuzm?orgId=1&var-branch=All&var-run1=2477&var-run2=2478&var-threshold=0.05

Disable-check: force-changelog-file

@akuzm akuzm marked this pull request as ready for review June 14, 2023 09:25
@github-actions github-actions bot requested a review from konskov June 14, 2023 09:25
@github-actions
Copy link

@mkindahl, @konskov: please review this pull request.

Powered by pull-review

@github-actions github-actions bot requested a review from mkindahl June 14, 2023 09:25
@codecov
Copy link

codecov bot commented Jun 20, 2023

Codecov Report

Merging #5772 (5c3b480) into main (490bc91) will decrease coverage by 0.04%.
The diff coverage is 93.52%.

@@            Coverage Diff             @@
##             main    #5772      +/-   ##
==========================================
- Coverage   87.90%   87.86%   -0.04%     
==========================================
  Files         239      239              
  Lines       55742    55787      +45     
  Branches    12350    12358       +8     
==========================================
+ Hits        48999    49017      +18     
- Misses       4849     4870      +21     
- Partials     1894     1900       +6     
Impacted Files Coverage Δ
tsl/src/compression/compression.h 40.00% <ø> (ø)
tsl/src/compression/decompress_test_impl.c 71.79% <71.42%> (+0.56%) ⬆️
tsl/src/compression/gorilla.c 87.07% <75.00%> (-0.91%) ⬇️
tsl/test/src/test_compression.c 97.45% <89.28%> (-0.53%) ⬇️
tsl/src/compression/simple8b_rle_bitmap.h 88.40% <90.52%> (+0.73%) ⬆️
tsl/src/compression/gorilla_impl.c 97.40% <96.77%> (+4.29%) ⬆️
src/adts/bit_array_impl.h 96.47% <100.00%> (-0.27%) ⬇️
tsl/src/compression/arrow_c_data_interface.h 100.00% <100.00%> (ø)
tsl/src/compression/compression.c 91.54% <100.00%> (-0.02%) ⬇️
tsl/src/compression/deltadelta.c 91.34% <100.00%> (-0.30%) ⬇️
... and 3 more

... and 22 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

* Restore default batch context size to fix a performance regression on
  sorted batch merge plans.
* Support reverse direction.
* Improve gorilla decompression by computing prefix sums of tag bitmaps
  during decompression.
@akuzm akuzm mentioned this pull request Jul 6, 2023
5 tasks
@akuzm akuzm enabled auto-merge (rebase) July 6, 2023 17:00
@akuzm akuzm merged commit eaa1206 into timescale:main Jul 6, 2023
42 checks passed
@akuzm akuzm deleted the bulk-improvements branch July 6, 2023 17:52
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.

3 participants