forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
117456: colinfo: optimize and refactor ResultColumns.NodeFormatter r=mgartner a=mgartner #### colinfo: eliminate allocations in ResultColumns.NodeFormatter This commit eliminates allocations in `ResultColumns.NodeFormatter` by returning an already-allocated `*string` casted to a `*tree.Name`. Release notes: None #### colinfo: refactor and rename ResultColumns.NodeFormatter This commit replaces `ResultColumns.NodeFormatter` with `ResultColumns.Name` with the return type of `*tree.Name` instead of `tree.NodeFormatter`. `scanNode.IndexedVarNodeFormatter` has been updated to use this new `Name` method. Epic: None Release note: None Co-authored-by: Marcus Gartner <[email protected]>
- Loading branch information
Showing
5 changed files
with
11 additions
and
9 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