The AWS Secrets Manager Agent is a local HTTP service that you can install and use in your compute environments to read secrets from Secrets Manager and cache them in memory.
lto = "thin to use link time optimization across the dependency tree. This increases the binary size by 0.5MB on stable-x86_64-apple-darwin. At the moment I'm not seeing a significant performance disparity between this being set to "thin" or "off". This might differ between platforms.
codegen-units = 1, significantly increases compilation time, is supposed to help with optimization, does appear to reduce binary size by a little over 1MB.
Issue #, if available: See https://github.com/aws/aws-secretsmanager-agent/discussions/9
https://doc.rust-lang.org/cargo/reference/profiles.html
Description of changes:
Experimenting with release profile parameters
lto = "thin
to use link time optimization across the dependency tree. This increases the binary size by 0.5MB onstable-x86_64-apple-darwin
. At the moment I'm not seeing a significant performance disparity between this being set to "thin" or "off". This might differ between platforms.codegen-units = 1
, significantly increases compilation time, is supposed to help with optimization, does appear to reduce binary size by a little over 1MB.strip = true
Removes symbols and debug info, reduces binary size (13MB -> 9MB).Before merging:
Run a load test and verify this leads to a consistent performance improvement on
stable-x86_64-unknown-linux-gnu
stable-x86_64-unknown-linux-musl
stable-aarch64-unknown-linux-gnu
stable-aarch64-unknown-linux-musl
stable-x86_64-pc-windows-msvc
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.