-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Modularization of map layer types #13276
Comments
Layer modules can be disabled/enabled at the |
@pozdnyakov @tmpsantos - I'm drafting a note for Snap here and I'd like to show a table of how much they can save on binary size by disabling a layer by referencing https://tmpsantos.com.br/binary/. Quick question, let's say Snap were able to disable symbol layer -- would the size savings be limited to the 26.0kB from the style, or would the compiler flag also disable related functions like SymbolLayout, SymbolBucket, and SymbolInstance, resulting in additional size savings? |
@chloekraw exculding a layer module from the layer manager removes all the related code from the binary including both style ( For disabled symbol layer the size savings should be much more than 26 kB. |
Thank you @pozdnyakov. Two quick points of clarification:
|
|
This issue includes re-grouping and refactoring the map layers code and updating the build configuration, so that for each layer type we can enable or disable the related code at compile time. As a result, we will be able to exclude any layer type from the delivered binaries.
The text was updated successfully, but these errors were encountered: