You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
polotek edited this page Feb 24, 2011
·
4 revisions
Try/Catch blocks can be expensive inside functions
If you have a function that has performance critical code in it (particularly if it's allocating a lot of variables), then don't use a try/catch inside the function. Catch the errors from outside the function instead. See this mailing list thread for background and this performance test case.