2 ms·
Yes, but only in the function where the try catch appears. Whatever you call from there, even if it's protected within the stack of the try/catch statement, is
by ef4 15y ago
Yes, but only in the function where the try catch appears. Whatever you call from there, even if it's protected within the stack of the try/catch statement, is still optimizable.
So entering a try/catch once and then doing all your work inside it is still fast. What's expensive is constantly entering new try/catch contexts.