I installed grpc on my ubuntu 22.04 Then I build examples. I call following:

/usr/bin/cmake ../ -DCMAKE_BUILD_TYPE:STRING=MinSizeRel -G "Unix Makefiles"
and build:

/usr/bin/cmake --build /home/user/grpc/examples/cpp/helloworld/build 
--target all -j 8
In the end I get compiled binaries of basic client-server examples in the 
build folder. The size of each of them is bigger than 37MB. What is the 
reason?

If I change CMADE_BUILD_TYPE to Release, no difference - size is still 37MB 
If I change to Debug, size is more than 40 (that is OK).

Why Release versions of basic grpc example programs are so enormouse in 
size?

I started this investigation because have same problem with my own project 
(its size without grps was 10MB, and it is 45MB wtih grpc).

UPD. My projectg is cross platform, the source is the same. Under Windows I 
link statically. The exe file size is 10 times smaller, 4.5MB. So question 
to linux binaries gets even harder. Any way to reduce it?

-- 
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 grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/3e945039-b731-4ebe-af63-4a7039ee0e40n%40googlegroups.com.

Reply via email to