Why are templates so slow to compile?

Large templated projects are slow to compile, the STL being a main culprit of this it seems from empiric evidence. But, why is it slow to compile?

I've optimized builds before by watching for header includes and by combining compilation units, but I don't get why template libraries are quite so slow to compile.

6
задан Richard Fabian 3 September 2010 в 08:44
поделиться