public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH] rust: Enable parallel-frontend-threads
@ 2026-03-12  4:07 sundeep.kokkonda
  2026-03-12  9:02 ` [OE-core] " Alexander Kanavin
  0 siblings, 1 reply; 5+ messages in thread
From: sundeep.kokkonda @ 2026-03-12  4:07 UTC (permalink / raw)
  To: openembedded-core; +Cc: randy.macleod

From: Sundeep KOKKONDA <sundeep.kokkonda@windriver.com>

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 <sundeep.kokkonda@windriver.com>
---
 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



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-03-12 13:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-12  4:07 [PATCH] rust: Enable parallel-frontend-threads sundeep.kokkonda
2026-03-12  9:02 ` [OE-core] " Alexander Kanavin
2026-03-12 12:13   ` Richard Purdie
2026-03-12 13:11   ` Sundeep KOKKONDA
2026-03-12 13:21     ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox