عنوان:

‫تاثیر بروز استثناءها بر روی کارآیی برنامه


نویسنده: وحید نصیری
تاریخ: ۱۳۹۴/۰۹/۲۸ ۲۲:۴
آدرس: www.dntips.ir

In order to cleanse the data as we parse it, we thought using a try/catch would be ok. If we don’t catch the exceptions, we’re good, right?
Turns out it kills our performance when we throw a lot of exceptions, even if we don’t catch them. Each exception has some costs . We needed to find a way to handle this data without involving exceptions.
TryParse turns out to be a method designed to solve our problem. We ran some benchmarks to prove it. 



مشاهده مطلب اصلی