merlimat opened a new pull request, #15442: URL: https://github.com/apache/pulsar/pull/15442
### Motivation Since we have always used `option optimize_for = LITE_RUNTIME` in `PulsarApi.proto`, we should also link with the `protobuf-lite.a` library when linking statically, as it will reduce the overall size of the `libpulsar.a` that includes all the dependencies. Example of size diff: ``` $ ll -h /opt/homebrew/Cellar/protobuf/3.19.4/lib/libprotobuf*.a -r--r--r-- 1 mmerli admin 874K Jan 28 08:41 /opt/homebrew/Cellar/protobuf/3.19.4/lib/libprotobuf-lite.a -r--r--r-- 1 mmerli admin 4.0M Jan 28 08:41 /opt/homebrew/Cellar/protobuf/3.19.4/lib/libprotobuf.a ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
