So I know that c++ is faster than c# and I was just looking through some stuff. I noticed something about Microsoft doing a native.net or something to make c# faster. Has anyone heard of this or know whereI can find more about it.
Are you interested in terms of Unity?
If so, Unity are using their own technology called IL2CPP (there’s a million threads here about it).
IL2CPP generates CPP code from the IL code and then compiles that to native binary for each platform.
IL2CPP is only currently available for iOS and WebGL but they are in the process of making it available for other platforms. The Unity road map indicates that Android, XBox One and PS4 are next to receive the IL2CPP love.
What about desktop
Standalone (Windows, OS X, and Linux) will be one of the last to receive support simply because other platforms benefit from it far more. I don’t recall where exactly it was stated, but I believe it was buried somewhere in the official thread.
Unity have expressed various reasons for which platforms will get IL2CPP first and there are many considerations - it’s not an easy decision to make. I suggest finding (Google) some of the IL2CPP blog posts and threads here and you’ll soon come up to speed on the where and why of IL2CPP. It doesn’t make a lot of sense for us to try and recap on all the details here.
Actual language speed is still somewhat dependent on the programmer. It is quite possible for someone to write code in C++ that performs slower than C# simply because they’re less used to dealing with the aspects that C# automates.
It is possible to run native code if you need the extra speed.
Thanks guys