Hello, I want to ask if std::intrinsics::unlikely
is working ?
I hace a C code that has a macro __builtin_expect((x), 0)
and greatly improves performance.
Is unlikely
working ? If not, any alternatives ?
Thanks !
Hello, I want to ask if std::intrinsics::unlikely
is working ?
I hace a C code that has a macro __builtin_expect((x), 0)
and greatly improves performance.
Is unlikely
working ? If not, any alternatives ?
Thanks !
The relevant issue is https://github.com/rust-lang/rust/issues/26179
I think it is stuck at the design/bike shedding phase -- there's no "obviously right" design (or at least it wasn't discovered so far), and it seems like no one is motivated enough to push some specific design to consensus.
Not the same but if you're after optimisations of that kind you could also try Profile Guided Optimization.
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.