forked from facebookincubator/velox
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify and optimize duplicate row memory allocations (facebookincub…
…ator#10865) Summary: This PR simplifies the duplicate row memory allocations by using dedicated hash string allocator with one per each partition. All the dedicated hash string allocators are all backup by the memory pool of the top level hash table. Then we can simplify the memory reservation in hash build operator and avoid the unnecessary memory fragements. Now we have to reserve memory from each of the hash build operator for the worst case of duplicate row memory allocations. This PR also make free next row vectors optional which can helps save >10% cpu cycles in hash join list microbenchmark. The free next row vectors are not necessary and most for sanity check. Also current implementation does not guaratee the next row vectors free always get executed as the duplicate row flag is not set correctly. This PR also fixes this by always passing the associated row container when do parallel row insertion. Pull Request resolved: facebookincubator#10865 Reviewed By: kevinwilfong Differential Revision: D61881526 Pulled By: xiaoxmeng
- Loading branch information
1 parent
7e4d626
commit c78ea01
Showing
13 changed files
with
171 additions
and
206 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
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
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
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
Oops, something went wrong.