forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql/distsqlrun: refactor tableReader to implement RowSource
Refactor tableReader to implement the RowSource interface. Refactor tableReader.Run() to be implemented in terms of tableReader.Next() (i.e. the RowSource interface). Adjusted BenchmarkTableReader to avoid using a RowBuffer. This shows the benefit that can be achieved by using TableReader as a RowSource ("old" below is with the benchmark modified to use a RowChannel). name old time/op new time/op delta TableReader-8 11.6ms ± 5% 9.4ms ± 3% -18.81% (p=0.000 n=10+10) See cockroachdb#20550 Release note: None
- Loading branch information
1 parent
234e945
commit d4b6e3f
Showing
4 changed files
with
285 additions
and
172 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
Oops, something went wrong.