DescriptionReduce size of generated extension FeatureProviders.
The generated feature provider code was generating a lot of std::string
and std::vector objects from string literals and initializer lists.
Unfortunately, this results in inlining a lot of STL code: on an
official Linux build, extensions::APIFeatureProvider::APIFeatureProvider
was over 200KB of code. After this change, it's still larger than
expected, at just under 67KB, but it's much better than before. In all,
this saves about 275KB of binary size in an official Linux GN build.
BUG=631915
Committed: https://crrev.com/d8b8acff3d2d57e66b833a5632e3a993eb405277
Cr-Commit-Position: refs/heads/master@{#408350}
Patch Set 1 #
Total comments: 6
Patch Set 2 : . #
Total comments: 5
Patch Set 3 : . #
Messages
Total messages: 22 (12 generated)
|