spcl/serverless-benchmarks

Optimize C++ deployments

Open

#266 opened on Dec 6, 2025

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Python (99 forks)auto 404
enhancementgood first issue

Repository metrics

Stars
 (196 stars)
PR merge metrics
 (PR metrics pending)

Description

Currently, we copy all dynamic libraries from dependencies into the final deployment image. This is not optimal - AWS Lambda deployment script uses ldd to recursively find only those shared libraries, that are actually used by the binary. We could apply the same to optimize container size.

The same happens for code packages - we don't need to pack and deploy system libraries, which we know will be available on Lambda; we should only pack our dependencies from /opt/.

For arm64 (#265), we can use an ldd replacement.

Contributor guide