I need to write software that will do a lot of math. Basically it will be a matrix multiplication with integers to calculate DCT. How much faster should I expect code to work in native c compared to VB.Net? Factor 2, coefficient 10, coefficient 1000 ...? Did someone try and collect statistics about this?
.NET code is compiled into native code by the JIT compiler, so you get native code in both cases.
The difference is that C code has slightly lower overhead around computing, so you might expect a difference in factor 2 performance.
. Pure code is JIT-compiled into native code before execution, so it should not be slower than native code. I would expect 10.
In addition, adaptive optimization methods determine the code when it is run, receiving more information than a typical static compiler. In this way, JIT can make better decisions for further optimization.
VB 93,7% C. .
, " " malloc() free(), Gargage, , VB.Net, . GC 10 , mallocs .
C, , , , . VB, . , GC .
/, , , , , . , , , , .
, , . (2 HT CPU) . - "Mark-Taken-And-Get-Data-If-Not-Taken". , . , , , , . , , . , . .
Source: https://habr.com/ru/post/1735418/More articles:MySQL: Navigate through the databases and run the stored procedure on it - databaseASP.NET MVC 2 points replaced by subtree in element name - asp.net-mvchttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1735415/mapping-multiple-domain-objects-to-the-same-table-using-gorm-dsl&usg=ALkJrhh6gclqfCimfGHBC3_kGcIrvoy6zgЖивой видеопоток - flashPython AppKit and ObjectiveC representatives - pythonI want to implement TinyMCE in my Wordpress plugin. AS? - tinymceCan you explain what is the relationship of the association in the database? - databaseConnecting to a database in an iPhone application - databaseHow to launch the application via SMS from another phone? - javaConnect iPhone application to PostgreSQL using Libpq - xcodeAll Articles