Earlier quoted context omitted.
You are right. There is no technical reason it should be as slow as it is. It's just that not enough resource was spent to make it fast. I mean, if this were a higher priority, Rust issue #26600 would have been fixed years ago. https://github.com/rust-lang/rust/issues/26600
Looks like it's blocked by lack of required LLVM support.
https://blog.llvm.org/2019/09/closing-gap-cross-language-lto...