Why .net is slow

irender

Member
Joined
Mar 18, 2015
Messages
8
Reaction score
0
Because .net has a lot of dependencies. It cannot run by itself. It needs the .net framework before you can run it.
 

ONIM

VIP
Joined
Feb 26, 2006
Messages
131
Reaction score
182
to accelerate application start use ngen.exe
 

Git

Member
Joined
Feb 9, 2010
Messages
55
Reaction score
41
Age
35
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

Member
Joined
Sep 30, 2009
Messages
5
Reaction score
0
Age
45
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

Member
Joined
Feb 9, 2010
Messages
55
Reaction score
41
Age
35
I did not know about exclusions, thank you.
 

AbdulAbdalla

Member
Joined
Sep 3, 2009
Messages
18
Reaction score
3
Age
38
.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.
 
Top