The libgrpc_csharp_ext.x64.so is that size because it is unstripped and 
contains debug symbols (we keep the debug symbols because they make it much 
easier to diagnose an issue in case of a grpc problem)

$ file libgrpc_csharp_ext.x64.so 
libgrpc_csharp_ext.x64.so: ELF 64-bit LSB shared object x86-64, version 1 
(SYSV), dynamically linked, 
BuildID[sha1]=e81cf405a65678e7791e4cab0fa1d98ee6904ff0, with debug_info, 
not stripped

if you want to shrink the version of your images, you can  strip the 
libgprc_csharp_ext.x64.so (e.g. after building the app or running "dotnet 
publish") yourself:

$ strip --strip-debug libgrpc_csharp_ext.x64.so
$ file libgrpc_csharp_ext.x64.so 
libgrpc_csharp_ext.x64.so: ELF 64-bit LSB shared object x86-64, version 1 
(SYSV), dynamically linked, 
BuildID[sha1]=e81cf405a65678e7791e4cab0fa1d98ee6904ff0, stripped

That will reduce the size of the library to less than 3MB. With the 
stripped version of the binary, everything will work normally, but your 
ability do debug a problem will be reduced due to missing debug symbols.


On Tuesday, October 2, 2018 at 9:03:06 PM UTC+2, [email protected] wrote:
>
> *libgrpc_csharp_ext.x64.so <http://libgrpc_csharp_ext.x64.so>, *the 
> native Grpc library for Linux,  is 15.2 Mb. For my application the size of 
> the package is key (it runs in a containerized environment). I'm using an 
> ultra-small Linux image, Alpine, which is only a couple of megabytes, and I 
> need to get the app size way down. Is it possible to get a smaller build of 
> libgrpc_csharp_ext.x64.so - even if it would only support a specific 
> image?
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/e9cd8a0d-a552-43d7-9398-892ac049a2d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to