c# - Exceptions - What really happens? -


i've seen number of articles, , questions of focus on cost of exceptions, performance benchmarks, , so.

but nothing seems explain why slow. happens under-the-hood magnitudes slower when 1 thrown. articles stack unwinding makes slow. don't understand why makes magnitudes slower.

from brief understanding of seh, every time thread enters try block, has add say, kind of marker location onto exception chain in tib. has costs, while trying walk stack. understand part. doubt that's half story considering magnitude of performance loss. also, why have unwind stack if exception being caught in same function. why case still equally slow?

could please explain going on in simple terms?


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -