Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set optimizations only for td-shim and td-payload crates #594

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

gaojiaqi7
Copy link
Member

@gaojiaqi7 gaojiaqi7 commented Sep 12, 2023

Binary size is not critical for tools so we can only set optimizations for debug build of td-shim and td-payload.

By renaming the profile.dev, we can use the dev-opt profile for required packages and use the default dev profile for others.

Resolves #593

Binary size is not critical for tools so we can only set optimizations for
debug build of `td-shim` and `td-payload`.

By renaming the `profile.dev`, we can use the `dev-opt` profile for required
packages and use the default `dev` profile for others.

Signed-off-by: Jiaqi Gao <jiaqi.gao@intel.com>
@gaojiaqi7
Copy link
Member Author

gaojiaqi7 commented Sep 14, 2023

Comparison of compilation time before and after making these changes:

Type Before After
Clean Build 45.4s 22.99s
Incremental Build 18.78s 3.56s

@jyao1 jyao1 merged commit 5b682ca into confidential-containers:main Sep 15, 2023
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve the build speed
2 participants