mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-05-16 20:37:15 +00:00
Apply per-package release-profile overrides for the kata-deploy crate only: opt-level = "z" # optimise for size, not speed codegen-units = 1 # let LLVM see the whole crate when inlining The binary is throwaway: it runs once at DaemonSet pod start, finishes the install in seconds, and then sits idle waiting for SIGTERM. There is no hot path to optimise for speed, so trading a bit of compile time and a few percent of CPU for a meaningfully smaller text segment is the right call here. These overrides live at the workspace root and are scoped via [profile.release.package."kata-deploy"], so they do not affect the agent, runtime-rs, dragonball, or any of the libs / tools crates. Fixes: https://github.com/kata-containers/kata-containers/discussions/12976 Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com> Assisted-by: Cursor <cursoragent@cursor.com>
6.6 KiB
6.6 KiB