Why .net is slow

Git

Участник
VIP
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

Новичок
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
 

Материал может быть удален по просьбе правообладателя

AbdulAbdalla

Участник
.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