spcl/serverless-benchmarks

Optimize C++ deployments

开放

#266 创建于 2025年12月6日

 (0 条评论) (0 个反应) (0 位负责人)Python (99 个派生)auto 404
enhancementgood first issue

仓库指标

星标
 (196 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南