Skip to content

Conversation

@arnaldo2792
Copy link
Contributor

Description of changes:

Use the recommended configuration that enables the front-end parallel compilation for faster builds. In various runs, I observed that the compilation time went down by 30 seconds:

# Before
Finished `release` profile [optimized] target(s) in 8m 22s

# After
Finished `release` profile [optimized] target(s) in 7m 40s

Testing done:

  • Build variant, and publish the AMI successfully

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

Use the recommended configuration that enables the front-end parallel
compilation for faster builds

Signed-off-by: Arnaldo Garcia Rincon <agarrcia@amazon.com>
@arnaldo2792 arnaldo2792 requested review from bcressey and cbgbt April 1, 2025 22:35
Copy link
Contributor

@cbgbt cbgbt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm supportive of enabling this in twoliter, but we should be mindful that the compiler team is still working through a backlog of ICE and deadlock bugs:
https://github.com/rust-lang/rust/labels/WG-compiler-parallel

If we encounter such issues while compiling twoliter, we should revert.

@arnaldo2792 arnaldo2792 merged commit d00e650 into bottlerocket-os:develop May 29, 2025
3 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.

3 participants