rules_apple icon indicating copy to clipboard operation
rules_apple copied to clipboard

[Feature Request] Support Asset Catalog compiler optimization

Open thii opened this issue 5 years ago • 2 comments

Xcode has a ASSETCATALOG_COMPILER_OPTIMIZATION build setting that:

With no value, the compiler uses the default optimization. You can also specify time to optimize for speed of access or space to optimize for a smaller compiled asset catalogs.

I'd like to request to add an option specify the optimization value of actool. Buck already does it.

thii avatar Jul 28 '20 01:07 thii

Related: https://github.com/bazelbuild/rules_apple/issues/732

segiddins avatar Jul 28 '20 04:07 segiddins

Huh I wonder what the default flag is, it looks like that build setting defaults to nothing, and passes --optimization time or --optimization space based on the value.

Strangely I tried this on a large asset catalog of ours (22mbs) and it didn't seem to have any impact on performance or size

keith avatar Oct 26 '21 20:10 keith