Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What characteristics of Java allow it to build much faster than a comparable C++ program? [duplicate]

Possible Duplicate:
Why does C++ compilation take so long?

I am working with two different projects of about the same size (loc). The Java build process using Ant is measured in minutes. The C++ build processing using the CMAKE tools is measured in hours.

What characteristics of Java allow it to build much faster than a comparable C++ program?

like image 573
Jon Avatar asked May 29 '09 20:05

Jon


2 Answers

I have to suspect that the absence of kilolines of header files is a lot to do with it.

like image 155
chaos Avatar answered Oct 07 '22 03:10

chaos


Templates are especially slow to compile.

like image 37
Martin Cote Avatar answered Oct 07 '22 04:10

Martin Cote