[rust-dev] Appeal for CORRECT, capable, future-proof math, pre-1.0

Vadim vadimcn at gmail.com
Fri Jan 10 22:44:37 PST 2014

> The branch on the overflow flag results in a very significant loss in
> performance. For example, I had to carefully write the vector `push`
> method for my `Vec<T>` type to only perform one overflow check. With
> two checks, it's over 5 times slower due to failed branch predictions.

Huh, that's a bit surprising.   I'd have expected branch predictor to learn
really quick that the branch is never taken.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20140110/6c1d1338/attachment.html>

More information about the Rust-dev mailing list