Hot take: Exceptions are a fine error-handling mechanism.
-
-
Ok I'll come off twitter-break for _one_ tweet to clarify this as it's turning into folklore. Just a small bug, a failure to find (or emit) the binary-search table in .eh_frame, causing big linear search per throw. Patch seems lost in mists of time: libunwind, libffi, bfd or gcj.
-
I probably mentioned it before as a funny story about a tiny impl. fix with a major perf impact (in context of perception of "slow java" etc); not anti-exceptions on cost basis alone, though costs are worse if you need many landing pads doing eager cleanups everywhere (not GC).
- 1 more reply
New conversation -
-
-
We've hit a few problems because exceptions are not cheap in the CLR like they are in Java, but people have ported Java to C# and we get reports that everything is super slow because they're using exceptions for standard control flow
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I'm fairly sure I read that story like a decade ago when I was idly browsing the gcj docs, maybe it's just on their website
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.