3 ms·
C# compilation is fast in part because of the removal of headers and the replacement of them by well defined assemblies with interfaces. C# compilation is fast
by bhouston 13y ago
C# compilation is fast in part because of the removal of headers and the replacement of them by well defined assemblies with interfaces. C# compilation is fast for the same reason Java compilation is fast. :)
C++ compilation is sort of screwy in that to compile a new C++ file the compiler actually has re-compile all the definitions of the libraries you are using. It is insanely inefficient compared to just using explicitly defined and immutable API interfaces on Assemblies/Modules.
- noblethrasher 13y agoWhat's the advantage of doing it the C++ way?
- diek 13y agoNone really. It just inherited the C model of compilation.
- Locke1689 13y agoC# is fast because 1) we try really hard to make it fast :) and 2) it's not an optimizing compiler.