forked from vitessio/vitess
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use available method to compare tables (vitessio#11056) (vitessio#984)
* Use available method to compare tables We already have a method that compares while ignoring the name, so use that here too. This avoids a copy and custom logic here. Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com> * Embed pointer instead of direct object We always have this already heap allocated so we don't save anything with storing the embedded struct here. In fact, we generate more copies this way because we have to copy the heap object this way. The cleanup of pointer references and deferences also shows this better matches how we use this. Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com> Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com> Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
- Loading branch information
Showing
3 changed files
with
46 additions
and
38 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