From: Sundeep KOKKONDA <[email protected]>

Enabled the parallel-frontend-threads for faster compilation of rust code.

Test Results:
A few tests ran by, with and without enabling this option.
- Avg. default build time (w/o this option) - 56m 50.104s
- Avg. build time with this option - 49m 17.224s
- Performance Difference - 7m 32.880s faster builds (≈ 13.3%)

Tests were performed by setting thread count as 8 & 16 but no much difference 
is seen.
So, the parallel-frontend-threads = 8 is set.

Signed-off-by: Sundeep KOKKONDA <[email protected]>
---
 meta/recipes-devtools/rust/rust_1.94.0.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/rust/rust_1.94.0.bb 
b/meta/recipes-devtools/rust/rust_1.94.0.bb
index 2be0bd8d89..82f42b7f50 100644
--- a/meta/recipes-devtools/rust/rust_1.94.0.bb
+++ b/meta/recipes-devtools/rust/rust_1.94.0.bb
@@ -139,6 +139,7 @@ python do_configure() {
     config.set("rust", "llvm-tools", e(False))
     config.set("rust", "lld", e(False))
     config.set("rust", "use-lld", e(False))
+    config.set("rust", "parallel-frontend-threads", "8")
     config.set("rust", "channel", e(d.expand("${RUST_CHANNEL}")))
 
     # Whether or not to optimize the compiler and standard library
-- 
2.49.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#232921): 
https://lists.openembedded.org/g/openembedded-core/message/232921
Mute This Topic: https://lists.openembedded.org/mt/118273920/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to