-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
138246: opt/exec: reduce allocations for counting join algorithms and types r=mgartner a=mgartner Arrays embedded in `execbuilder.Builder` are now used instead of maps to keep track of the count of join algorithms and types used in a query plan. This reduces allocations and overhead of using a hash map. We now only track up to 255 of each algorithm and type. This seems like a suitable limitation because it should be extremely rare for a query to have so many joins and these metrics don't need to be completely accurate - they are meant to provide a rough picture of how common each join algorithm and type is in practice. Epic: None Release note: None Co-authored-by: Marcus Gartner <[email protected]>
- Loading branch information
Showing
3 changed files
with
22 additions
and
21 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