Release build slower than debug on ARM (Yocto cross-compile)
โ Rust ๐ 2026-02-25 ๐ค surdeus ๐๏ธ 1Hey 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
๐ท๏ธ Rust_feed