-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit refactors `enqueue` method of the spilling queue to deep-copy the passed-in batches if they are kept in memory. Previous behavior was suboptimal because it was forcing the caller to always allocate a new batch. Additionally, the spilling queue will now perform a coalescing step by attempting to append as many tuples to the tail in-memory batch as possible. The in-memory batches are allocated with dynamically increasing capacity. This allows us to significantly simplify the code of the router outputs which were performing the coalescing step previously. Additionally, this commit fixes a couple of uses of `enqueue` method (the router outputs and the merge joiner) in which they forgot to enqueue a zero-length batch which is necessary when the disk queue is initialized. Release note: None
- Loading branch information
1 parent
3d029cc
commit e2d602e
Showing
10 changed files
with
354 additions
and
376 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
Oops, something went wrong.