Why .net is slow

irender

Турист
Регистрация
18 Мар 2015
Сообщения
8
Реакции
0
Credits
12
Because .net has a lot of dependencies. It cannot run by itself. It needs the .net framework before you can run it.
 

ONIM

ex-Team DUMPz
Местный
Регистрация
26 Фев 2006
Сообщения
122
Реакции
191
Credits
57
to accelerate application start use ngen.exe
 

Git

Premium
Регистрация
9 Фев 2010
Сообщения
56
Реакции
41
Credits
67
Because almost every command makes calls to the framework, and is range checked, memory securely allocated, checked when free, etc. Compared to direct compiled C it becomes very slow. But, you must also weigh against that how much work is being done by each line of code, and how long it would take to write the same functionality in a simple language. There are always pros and cons, nothing for free.

Git
 

Sarracino

Турист
Регистрация
30 Сен 2009
Сообщения
5
Реакции
0
Credits
8
Because almost every command makes calls to the framework, and is range checked, memory securely allocated, checked when free, etc. Compared to direct compiled C it becomes very slow. But, you must also weigh against that how much work is being done by each line of code, and how long it would take to write the same functionality in a simple language. There are always pros and cons, nothing for free.

Git
and the libraries are all dynamics and very small... you can try to exclude in your av program the .net fw dir
 

Git

Premium
Регистрация
9 Фев 2010
Сообщения
56
Реакции
41
Credits
67
I did not know about exclusions, thank you.
 

AbdulAbdalla

Местный
Регистрация
3 Сен 2009
Сообщения
18
Реакции
3
Credits
26
.NET is not native code. It gets compiled to an intermediate language which is then JIT compiled during execution. That of course takes more time than executing native code in the first place.