December 22, 2015

Is Managed(C#/Java) Code Slower Than Native(C/C++) ?

As a developer, you either ask this question to yourself or keep hearing it from your friends. “Is Managed(C#/Java) Code Slower Than Native(C/C++) ?”. Well the answer is: It depends!

Targeting different CPUs

JIT(Just In Time) Compiler is a major component of managed code. Most of the code you’re running is actually compiled when they’re needed. Which gives JIT Compiler the unique ability of examining the CPU and then enabling CPU specific optimizations.…