Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] reducing compile time

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] reducing compile time


Chronological Thread 
  • From: Sylvain Pion <>
  • To:
  • Subject: Re: [cgal-discuss] reducing compile time
  • Date: Thu, 22 Nov 2007 19:53:32 +0100
  • Organization: INRIA

Gabriel Cirio a écrit :
Hello,

is there any tip or trick to reduce the compile time of a CGAL application? I am using an enriched polyhedron template with a bunch of templated (since they use the enriched polyhedron) functionalities, and it often takes several minutes to compile since every single header/template is recompiled each time. Is there a technique to minimize template recompilation?

It depends on the compiler, but for example with g++ you can use
precompiled headers. In such a header, you can put as much stuff
as you wish, especially template instantiations as Fernando mentioned,
but already including many files can help. Then you precompile it,
and the compiler loads the precompiled versions automatically
if you specify something like "-include my_pch.h" on the command line.
It has the benefit that you do not need to re-organize your source
files (like concatenating all your *.cpp files before compiling them
in one go instead of doing several compilations for each of them).

--
Sylvain Pion
INRIA Sophia-Antipolis
Geometrica Project-Team
CGAL, http://cgal.org/

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature




Archive powered by MHonArc 2.6.16.

Top of Page