-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Improvement] Refactor getPartitionRange to calculate range directly (#…
…447) ### What changes were proposed in this pull request? 1. Refactor ShuffleStorageUtils.getPartitionRange to calculate range directly. 2. The runtime of the function will be O(1) as opposed to O(n) in the original implementation. ### Why are the changes needed? fix #443 The current implementation of ShuffleStorageUtils.getPartitionRange is O(n) which is not performant and can be done in O(1) by directly computing it using the partitionId. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? existing UTs + new UTs
- Loading branch information
Showing
2 changed files
with
53 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters