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: Joachim Reichel <>
  • To:
  • Subject: Re: [cgal-discuss] reducing compile time
  • Date: Mon, 10 Dec 2007 09:44:56 +0100

Hi,

>> These are for caching a whole translation unit and wont help for CGAL,
>> because here, most programs only have one translation unit (one C file,
>> which includes everything else).
>
> I can not understand why ccache does not work for CGAL I tested it with my
> project and although the statistics show that somethings are cached, but th
> next compilation took nearly thesame time as first time.

ccache works fine with CGAL, but often you won't notice any benefit (see
below).

[...]
> In my case, I only change one file. So logically by using ccache, other
> header files that have not been changed, should be read from cache (during
> compilation).

As already pointed out, ccache works on translation units. If you have
only one translation unit, and edit any file, the cached copy of the
translation unit is outdated and has be to recompiled.

> Does this mean that there is a mechanism in CGAL that clear or change the
> timestamp of files every time??
> It is strange.

No.

> Also, why do not developers embed a caching tool during CGAL installation?

Because it is not the task of a software library to decide on the
caching tool that should be used in a particular build
environment/software project.

Regards,
Joachim



Archive powered by MHonArc 2.6.16.

Top of Page