4 ms·
According to http://stackoverflow.com/a/13836329/1517969 http://stackoverflow.com/a/13836329/1517969 modern c++ exceptions are free when no throw occurs.
by olejorgenb 10y ago
According to http://stackoverflow.com/a/13836329/1517969 http://stackoverflow.com/a/13836329/1517969 modern c++ exceptions are free when no throw occurs.
- mmstick 10y agoIn addition, Rust Results/Options are free when no throw occurs. So the argument is moot.
- softc 10y agoNo they aren't, you must issue a compare instruction to verify the result was successful.
- oconnor663 10y agoDo you know whether branch prediction makes them effectively free, in places where the result is almost always successful?