Reduce Grpc.Core nuget size by generating separate .so with/without debug symbols for grpc_csharp_ext#25729
Conversation
055f540 to
572ab4b
Compare
|
Adhoc artifacts / packages / distribtests run: https://fusion2.corp.google.com/invocations/ae11738c-74a6-4604-aae4-cf957090e991/targets I will add info about Grpc.Core size difference once the package build finishes. |
|
CC @jskeet |
|
Issue with stripping linux aarch64 library (since aarch64 library cannot be stripped on x64?) |
|
Another run of adhoc artifacts / packages / distribtests: https://fusion2.corp.google.com/invocations/238d80d1-5d4c-4a63-b4e2-a3a9031ce9d8/targets |
|
Grpc.Core size reduction is quite significant: 74MB -> 14MB All the C# distribtests are still passing. Adhoc build of the nuget packages is here: |
|
CC @jskeet as this PR leads to significant decrease of Grpc.Core size (it's now 14MB). |
|
Wahoo - that's great news :) |
|
This is again broken in the latest Prpc.Core 2.42.0 and 2.43.0-pre1 nugets. libgrpc_csharp_ext.so is once again 107MB! |
I don't think that's true. See |
This should lead to significant reduction of Grpc.Core nuget's size.
The Grpc.Core package will from now on contain stripped version of grpc_csharp_ext.so. The non-stripped version with all the debug symbols will be made available through the Grpc.Core.NativeDebug package.
Related issue: #25598