Release build slower than debug on ARM (Yocto cross-compile)

โš“ Rust    ๐Ÿ“… 2026-02-25    ๐Ÿ‘ค surdeus    ๐Ÿ‘๏ธ 1      

surdeus

Hey everybody,

I have written an application for some networking tasks that runs in the user space of my Yocto-Linux.
I noticed a dip in performance running the --release version.
Afterwards, Iโ€™ve tried different opt-levels and explicitly setting target-cpu, but without improvement.

I realise it is probably a "me problem", since i have a hard time finding any sources talking about problems with the optimization. If you got any pointer on how to pinpoint the issue, I would greatly appreciate the help. Thanks in advance!

Context:

  • Target: Rock Pi E (Arm Cortexโ€‘A53 64โ€‘bit)
  • Build system: Yocto, using a sourced SDK
  • Cross-compiling Rust (not building natively on the device)

1 post - 1 participant

Read full topic

๐Ÿท๏ธ Rust_feed