You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
CoreThe cross-platform C++ core, aka mbglarchivedArchived because of inactivityperformanceSpeed, stability, CPU usage, memory usage, or power usageruntime styling
Looking at our binary size tracker, it looks like we got a massive increase on Feb 2/3, which seems to coincide with the merge of #7372. In some cases like Android arm-v7/8, the increase is as much as 1 MB. We should investigate ways of making the API leaner, and check whether there are certain templates that cause a huge amount of code to be generated.
Looked into this on macOS and I can reproduce the ~500kb increase in Mapbox.framework between 6a6bddb and 22b3834. I have build directories for both of those commits, but I'm not sure how to identify why exactly the size increase occurs or how to reduce it. It looks like I'd have to start writing some custom tooling that does Mach-O binary reversing combined with analysis of the corresponding dSYM. (Apple's own Mach-O format documentation is now a 404.)
CoreThe cross-platform C++ core, aka mbglarchivedArchived because of inactivityperformanceSpeed, stability, CPU usage, memory usage, or power usageruntime styling
Activity
jfirebaugh commentedon Feb 13, 2017
Do you know of any tools for profiling binary size?
kkaefer commentedon Feb 14, 2017
There's https://github.com/google/bloaty, but I've found it to be of limited use since most (~80-90%) of the pie is typically attributed to
[None]. Looking at the*.ofiles, any code that uses RapidJSON or the conversion headers seems to be quite heavy.jfirebaugh commentedon Feb 21, 2017
Looked into this on macOS and I can reproduce the ~500kb increase in Mapbox.framework between 6a6bddb and 22b3834. I have build directories for both of those commits, but I'm not sure how to identify why exactly the size increase occurs or how to reduce it. It looks like I'd have to start writing some custom tooling that does Mach-O binary reversing combined with analysis of the corresponding dSYM. (Apple's own Mach-O format documentation is now a 404.)
1ec5 commentedon Mar 4, 2017
Does this article have the Mach-O documentation you need?
jfirebaugh commentedon Mar 7, 2017
Tried switching to mpark/variant, it was a pessimization:
jfirebaugh commentedon Mar 8, 2017
@kkaefer The original size increase has now fallen off of https://mapbox.github.io/mapbox-gl-native/metrics/binary-size/. How do I change the x-axis scale?
kkaefer commentedon Mar 8, 2017
The code for this graph is at https://github.com/mapbox/mapbox-gl-native/tree/gh-pages. Our nightly builds pull data from CloudWatch and publish it to S3. The time period is currently limited to 30 days during the publishing process. The issue with collecting more data points at a single time is that the API will only give you back up to 1440 at a time. I just manually republished 60 days worth of data points and added a PR
jfirebaugh commentedon Mar 23, 2017
Making some progress here, but it's also being offset by additional increases -- e.g. 20712b7 added 70k to the iOS/macOS binaries.
stale commentedon Nov 26, 2018
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.