diff options
author | Colin Cross <ccross@android.com> | 2015-05-19 13:03:01 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2015-05-19 13:03:01 -0700 |
commit | 3ab7d8835f9ca0259a0d674778dadaaf952d3c6f (patch) | |
tree | 6582aaf158697ff5fe888541e92389f1bc6f6e57 /common/arch.go | |
parent | d81496084b4b9c2b183f9551733a745dc7ec567f (diff) | |
download | build_soong-3ab7d8835f9ca0259a0d674778dadaaf952d3c6f.tar.gz build_soong-3ab7d8835f9ca0259a0d674778dadaaf952d3c6f.tar.bz2 build_soong-3ab7d8835f9ca0259a0d674778dadaaf952d3c6f.zip |
Use proptools.CloneEmptyProperties
CloneEmptyProperties is much faster than CloneProperties followed
by ZeroProperties. Cuts >100ms off soong_build runtime, which will
become more important when we start calling soong_build a second
time to automatically generate documentation.
Change-Id: I45d948b36d9937a21b13dab068c3ce9a60b5a59b
Diffstat (limited to 'common/arch.go')
-rw-r--r-- | common/arch.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/arch.go b/common/arch.go index 2a09ae95..4ea0f268 100644 --- a/common/arch.go +++ b/common/arch.go @@ -377,8 +377,7 @@ func InitArchModule(m AndroidModule, defaultMultilib Multilib, archProperties := &archProperties{} forEachInterface(reflect.ValueOf(archProperties), func(v reflect.Value) { - newValue := proptools.CloneProperties(propertiesValue) - proptools.ZeroProperties(newValue.Elem()) + newValue := proptools.CloneEmptyProperties(propertiesValue) v.Set(newValue) }) |