Merge "Optimize blueprint.variationMap.equal" into main am: 4a918d4e91
Original change: https://android-review.googlesource.com/c/platform/build/blueprint/+/2947017 Change-Id: I9adb50dd5f8d9549fa7b738b680a4610e2295670 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
409c25a85a
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