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.
136217: sql: reduce allocations in `(*schemaResolver).LookupObject` r=mgartner a=mgartner Previously, the `PrefixAnd*` functions had parameters with the interface type `tree.ObjectName`, causing the corresponding arguments to escape to the heap. Now the functions parameters are the concrete types `*tree.TableName` and `*tree.TypeName`, reducing allocations at callsites. Informs cockroachdb#105867 Release note: None Co-authored-by: Marcus Gartner <[email protected]>
- Loading branch information
Showing
2 changed files
with
12 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