4 ms·
These are very interesting articles benjiweber and you are right, it depends of the implementation. My point is that there are some cases in which you can gain
by thepumpkin1979 15y ago
These are very interesting articles benjiweber and you are right, it depends of the implementation. My point is that there are some cases in which you can gain some speed by no throwing exceptions at all and TryParse is a perfect example of this(at least in .NET).
Also exception-handling blocks might prevent the Virtual Machine from inlining the method(again, at least in .NET), is this true for the JVM too?