platform_build_blueprint/proptools
Colin Cross 42b2e906ef Optimize NinjaEscapeList to avoid allocating an output slice
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
2023-11-01 15:15:16 -07:00
..
clone.go Add support for maps as properties 2021-05-26 09:54:22 -04:00
clone_test.go Add support for maps as properties 2021-05-26 09:54:22 -04:00
escape.go Optimize NinjaEscapeList to avoid allocating an output slice 2023-11-01 15:15:16 -07:00
escape_test.go Optimize NinjaEscapeList to avoid allocating an output slice 2023-11-01 15:15:16 -07:00
extend.go Add proptools helper functions. 2022-01-11 10:21:05 -05:00
extend_test.go Support AppendMatchingProperties on an embedded anonymous struct 2021-06-28 17:08:52 -07:00
filter.go Always shard structs if they would exceed maxNameSize even if unfiltered 2021-03-26 09:59:19 +00:00
filter_test.go Always shard structs if they would exceed maxNameSize even if unfiltered 2021-03-26 09:59:19 +00:00
proptools.go Add support for maps as properties 2021-05-26 09:54:22 -04:00
proptools_test.go Fix PropertyNameForField for X86. 2020-02-05 17:13:08 -08:00
tag.go Add support for maps as properties 2021-05-26 09:54:22 -04:00
tag_test.go propertyIndexesWithTag can handle slice of struct 2021-02-24 01:02:59 +09:00
typeequal.go Support nil pointers to structs in properties 2016-08-05 17:19:36 -07:00
typeequal_test.go Support nil pointers to structs in properties 2016-08-05 17:19:36 -07:00
unpack.go apply gofmt 2023-02-21 15:11:20 -05:00
unpack_test.go Revert "Add support for maps in blueprint files." 2022-08-02 10:55:21 -04:00