Merge "Optimize blueprint.variationMap.equal" into main
This commit is contained in:
commit
4a918d4e91
1 changed files with 4 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue