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

refactor: improve the partition compute #1151

Merged
merged 6 commits into from
Aug 15, 2023

Conversation

ShiKaiWi
Copy link
Member

Rationale

The previous implementation of computing partition key is coarse, leading to poor performance.

Detailed Changes

Refactor the implementation of computing partition key, and the most of memory allocation is avoided.

Test Plan

Existing unit tests.

@ShiKaiWi ShiKaiWi force-pushed the improve-partition-key-compute branch from 1151f6d to c69833a Compare August 14, 2023 13:12
@ShiKaiWi ShiKaiWi force-pushed the improve-partition-key-compute branch from c69833a to c9e73f9 Compare August 14, 2023 13:17
common_types/src/datum.rs Outdated Show resolved Hide resolved
table_engine/src/partition/rule/key.rs Show resolved Hide resolved
components/hash_ext/src/lib.rs Outdated Show resolved Hide resolved
@tanruixiang
Copy link
Member

LGTM

@ShiKaiWi ShiKaiWi force-pushed the improve-partition-key-compute branch from f09e4b1 to f926f67 Compare August 15, 2023 03:23
Copy link
Contributor

@jiacai2050 jiacai2050 left a comment

Choose a reason for hiding this comment

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

LGTM

@ShiKaiWi ShiKaiWi merged commit b59e07e into apache:main Aug 15, 2023
5 checks passed
@ShiKaiWi ShiKaiWi deleted the improve-partition-key-compute branch August 15, 2023 05:58
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