Request for Guidance: Reducing libdatachannel Library Size for Embedded
Hi,
I'm interested in using the libdatachannel library in an embedded system, but the current compiled size is quite large (around 13MB). Given the resource constraints of embedded systems, I'd like to explore options for reducing the library size while retaining essential functionality.
Could you please provide guidance or suggestions on how to achieve this? Are there any specific build options or configurations I should be aware of? Any tips on excluding unnecessary components or dependencies would be greatly appreciated.
Thanks in advance for your help!
I'm interested in using the libdatachannel library in an embedded system, but the current compiled size is quite large (around 13MB).
What platform are you targeting, and how did you build it? libdatachannel compiled in release mode is only around 4MB on x86_64 with everything enabled (media and websocket).
@paullouisageneau is that statically linked?
I am interested in this also. Haven’t done any work on it yet though.
I am going to open a PR that lets you disable DataChannels. I am doing media only and usrsctp adds a lot.
@Sean-Der 4MB is the typical size of the .so with all submodules statically linked into it (and basically only a dependency to OpenSSL, GnuTLS, or MbedTLS).