Skip to content

Speed up T64 decompression via dynamic dispatch#90610

Merged
Algunenano merged 3 commits intoClickHouse:masterfrom
Algunenano:t64_speeeeeeed
Nov 24, 2025
Merged

Speed up T64 decompression via dynamic dispatch#90610
Algunenano merged 3 commits intoClickHouse:masterfrom
Algunenano:t64_speeeeeeed

Conversation

@Algunenano
Copy link
Copy Markdown
Member

@Algunenano Algunenano commented Nov 21, 2025

Changelog category (leave one):

  • Performance Improvement

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Speed up T64 decompression via dynamic dispatch

Details

Comes from #90043.

Easily 2x+ as fast (with local CPU with 512BW):
SELECT count(n) FROM codec_seq_UInt64_T64 WHERE ignore(n) == 0 LIMIT 20000000 SETTINGS max_threads=1;

  • Before: 0.0.0.0:49000, queries: 200, QPS: 16.504, RPS: 330077530.024, MiB/s: 2518.292, result RPS: 16.504, result MiB/s: 0.000.
  • After: 0.0.0.0:49000, queries: 200, QPS: 37.334, RPS: 746685862.706, MiB/s: 5696.761, result RPS: 37.334, result MiB/s: 0.000.

@clickhouse-gh
Copy link
Copy Markdown
Contributor

clickhouse-gh bot commented Nov 21, 2025

Workflow [PR], commit [c735276]

Summary:

job_name test_name status info comment
Build (amd_compat) failure
Cmake configuration failure cidb
BuzzHouse (amd_debug) failure
Logical error: 'Inconsistent AST formatting: the query: FAIL cidb
BuzzHouse (amd_ubsan) failure
/home/ubuntu/actions-runner/_work/ClickHouse/ClickHouse/src/IO/VarInt.h:32:5: runtime error: store to null pointer of type 'char' FAIL cidb

@clickhouse-gh clickhouse-gh bot added the pr-performance Pull request with some performance improvements label Nov 21, 2025
@nickitat nickitat self-assigned this Nov 21, 2025
@Algunenano
Copy link
Copy Markdown
Member Author

image

@Algunenano Algunenano enabled auto-merge November 24, 2025 20:53
@Algunenano Algunenano added this pull request to the merge queue Nov 24, 2025
Merged via the queue into ClickHouse:master with commit 407e33a Nov 24, 2025
129 of 133 checks passed
@Algunenano Algunenano deleted the t64_speeeeeeed branch November 24, 2025 21:13
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Nov 24, 2025
@rschu1ze
Copy link
Copy Markdown
Member

Nice optimization! @Algunenano

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-performance Pull request with some performance improvements pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants