Merge "Optimize blueprint.variationMap.equal" into main

This commit is contained in:
Colin Cross 2024-02-05 20:29:19 +00:00 committed by Gerrit Code Review
commit 4a918d4e91

View file

@ -441,7 +441,10 @@ func (vm variationMap) subsetOf(other variationMap) bool {
} }
func (vm variationMap) equal(other variationMap) bool { func (vm variationMap) equal(other variationMap) bool {
return reflect.DeepEqual(vm, other) if len(vm) != len(other) {
return false
}
return vm.subsetOf(other)
} }
type singletonInfo struct { type singletonInfo struct {