In .net why is throwing an exception computationally heavy?

Why does .net throw an exception that is highly computational?

+3
source share
1 answer

Things like calculating the full call stack at the exception point take time and computation.

However, there are places where .NET is better than C ++, because it does not need to keep track of memory, which should be cleaned up just like a C ++ exception handler.

For more details, I would recommend a Rico Mariani blog post on this subject.

+6
source

Source: https://habr.com/ru/post/1705827/


All Articles