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
Post a Comment