DEV Community

Discussion on: Is C# worth learning in 2019?

Collapse
 
daniel15 profile image
Daniel Lo Nigro • Edited

only languages that can boast about being more resource friendly and therefore fast would be C, and C++.

For what it's worth, the .NET Core team have started rewriting some of their C++ code into C#, which in some cases has actually made it faster.

A lot of that speedup is due to being able to avoid marshaling data between managed (C#) and unmanaged (C++), but it's still worth noting that just because some code is written in C++, doesn't mean it's faster than C#. The C# JIT can do some advanced optimizations at runtime that aren't possible with a language that compiles directly to machine code with no JIT compilation.

The Kestrel web server for .NET Core is faster than both Nginx and Node.js, even though Nginx is written in C while Kestrel is written in C#. techempower.com/benchmarks/#sectio...