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: avoid repeated EvalContext allocation (again)
Plumb EvalContext into streamMerger and streamGroupAccumulator in order to avoid allocating it on every call to advanceGroup. name old time/op new time/op delta MergeJoiner/rows=0-8 3.15µs ± 0% 3.29µs ± 1% +4.54% (p=0.000 n=10+9) MergeJoiner/rows=4-8 6.50µs ± 1% 6.01µs ± 1% -7.62% (p=0.000 n=9+8) MergeJoiner/rows=16-8 14.9µs ± 0% 9.2µs ± 1% -38.01% (p=0.000 n=8+9) MergeJoiner/rows=256-8 170µs ± 1% 71µs ± 2% -58.19% (p=0.000 n=10+10) MergeJoiner/rows=4096-8 2.64ms ± 0% 1.05ms ± 0% -60.42% (p=0.000 n=8+9) MergeJoiner/rows=65536-8 44.4ms ± 1% 17.2ms ± 1% -61.22% (p=0.000 n=9+10) name old speed new speed delta MergeJoiner/rows=4-8 4.93MB/s ± 0% 5.33MB/s ± 1% +8.15% (p=0.000 n=8+8) MergeJoiner/rows=16-8 8.61MB/s ± 0% 13.89MB/s ± 1% +61.32% (p=0.000 n=8+9) MergeJoiner/rows=256-8 12.0MB/s ± 1% 28.8MB/s ± 2% +139.20% (p=0.000 n=10+10) MergeJoiner/rows=4096-8 12.4MB/s ± 0% 31.3MB/s ± 0% +152.68% (p=0.000 n=8+9) MergeJoiner/rows=65536-8 11.8MB/s ± 1% 30.4MB/s ± 1% +157.84% (p=0.000 n=9+10) Release note (performance change): Speed up except and merge joins by avoiding an unnecessary allocation.
- Loading branch information
1 parent
e77de23
commit bda143f
Showing
4 changed files
with
45 additions
and
20 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