-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce indices buffer memory usage in LocalPartition (#7939)
Summary: Pull Request resolved: #7939 In the current code, if we partition N rows with M columns to K partitions, we allocate a buffer of N indices for each partitioned output M columns, so the total memory for these indices is $`O(NMK)`$. In this change we reduce this to $`O(NM)`$ by allocating the indices for each partition with the number of rows in that partition only. Reviewed By: xiaoxmeng Differential Revision: D51984975 fbshipit-source-id: 2c17cdba0e7bbe09a41d296030a29482f7a68b2c
- Loading branch information
1 parent
93fe491
commit 4f95700
Showing
2 changed files
with
60 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