2 ms·
> I'd rather have 5% slower code, than 5% faster code with occasional 1000% slow downs (in the worst case). Perhaps, but that's a strawman through & through. C
by kllrnohj 5y ago
> I'd rather have 5% slower code, than 5% faster code with occasional 1000% slow downs (in the worst case).
Perhaps, but that's a strawman through & through. C++ exceptions don't have that performance cliff when thrown, per both the paper in the OP & in your link. They are fairly cheap to throw assuming a single-threaded application.
That is, the fib example with 10% failure rate has the same performance using exceptions & using Boost::LEAF.
Unless you're calling it "unfixable" because there isn't actually anything to fix in the first place...