Ableton / LinkKit

iOS SDK for Ableton Link, a new technology that synchronizes musical beat, tempo, and phase across multiple applications running on one or more devices.
http://ableton.github.io/linkkit
Other
147 stars 10 forks source link

Big lib size #13

Closed verycoolcat closed 8 years ago

verycoolcat commented 8 years ago

Hello, the lib size is around 100Mb, is there a way to bring it down? It doubles the size of my app.

lijon commented 8 years ago

Really? My app AUM is only a 5 Mb download, and it uses LinkKit. :)

Perhaps you're including it all instead if just the static lib + headers?

/Jonatan

29 Feb 2016 kl. 17:34 skrev verycoolcat notifications@github.com:

Hello, the lib size is around 100Mb, is there a way to bring it down? It doubles the size of my app.

— Reply to this email directly or view it on GitHub.

essej commented 8 years ago

Same here, the compiler/linker does not appear to use much of what is inside the LinkKit static library, my final target binary size is mostly unchanged in size after adding Link support. Makes me wonder what is in there though!

Jesse

On Mon, Feb 29, 2016 at 12:10 PM, Jonatan Liljedahl < notifications@github.com> wrote:

Really? My app AUM is only a 5 Mb download, and it uses LinkKit. :)

Perhaps you're including it all instead if just the static lib + headers?

/Jonatan

29 Feb 2016 kl. 17:34 skrev verycoolcat notifications@github.com:

Hello, the lib size is around 100Mb, is there a way to bring it down? It doubles the size of my app.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/Ableton/LinkKit/issues/13#issuecomment-190293984.

danielwalton commented 8 years ago

..boost?

On Mon, Feb 29, 2016 at 9:13 AM, essej notifications@github.com wrote:

Same here, the compiler/linker does not appear to use much of what is inside the LinkKit static library, my final target binary size is mostly unchanged in size after adding Link support. Makes me wonder what is in there though!

Jesse

On Mon, Feb 29, 2016 at 12:10 PM, Jonatan Liljedahl < notifications@github.com> wrote:

Really? My app AUM is only a 5 Mb download, and it uses LinkKit. :)

Perhaps you're including it all instead if just the static lib + headers?

/Jonatan

29 Feb 2016 kl. 17:34 skrev verycoolcat notifications@github.com:

Hello, the lib size is around 100Mb, is there a way to bring it down? It doubles the size of my app.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/Ableton/LinkKit/issues/13#issuecomment-190293984.

— Reply to this email directly or view it on GitHub https://github.com/Ableton/LinkKit/issues/13#issuecomment-190295714.

andoma commented 8 years ago

It's mostly debugging information and LLVM bitcode, none of which enter the final app bundle.

verycoolcat commented 8 years ago

Hello community, thanks for answering! Of course I was looking at the wrong place. My archive size was doubled, not the app size. App size is almost the same. I should have checked LinkHut - it is 1.6 Mb :)

brs-ableton commented 8 years ago

Looks like this has been well explained, but for the record the library size jumped about 4x in LinkKit 1.0.1 because we turned on bitcode support. As has been stated, this doesn't translate into a larger app when downloaded from the store because of app thinning.

Also, as @andoma said the library contains debug symbols and, in addition to the armv7 and arm64 slices, includes slices for x86_64 and i386 to enable usage with the simulator. These slices do not contribute to app size.