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:
Colin Cross 2024-02-05 20:41:37 +00:00 committed by Automerger Merge Worker
commit 409c25a85a

View file

@ -441,7 +441,10 @@ func (vm variationMap) subsetOf(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 {