42b2e906ef
NinjaEscapeList is called on every input or output of a rule, and most of the time does not escape anything. Optimize it by returning the input slice when nothing was escaped. This avoids 1.336 GB of allocations in my AOSP aosp_cf_x86_64_phone-userdebug build. Test: TestNinjaEscapeList Change-Id: I33b9e7b77b33d10401d1ec3546caa6794c567b16 |
||
---|---|---|
.. | ||
clone.go | ||
clone_test.go | ||
escape.go | ||
escape_test.go | ||
extend.go | ||
extend_test.go | ||
filter.go | ||
filter_test.go | ||
proptools.go | ||
proptools_test.go | ||
tag.go | ||
tag_test.go | ||
typeequal.go | ||
typeequal_test.go | ||
unpack.go | ||
unpack_test.go |