[Dune] [#984] Speeding up configure

Dune flyspray at dune-project.org
Fri Dec 2 23:47:05 CET 2011


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Christoph GrĂ¼ninger (gruenich) 

Attached to Project - Dune
Summary - Speeding up configure
Task Type - Discussion
Category - Build-System
Status - Unconfirmed
Assigned To - 
Operating System - Unspecified / All
Severity - Low
Priority - Normal
Reported Version - SVN (pre2.2)
Due in Version - Undecided
Due Date - Undecided
Details - I am annoyed by Dune's sluggish build process. I hoped CMake might speed up the autogen and configure part.
Lately Robert pointed [0] to autotool's configure cache [1]. I tried it and for
 dunecontontrol --opts=... --module=dune-pdelab configure
it took 49 seconds without and 29 seconds with caching. I deleted the cache before the run and it was created by the first occurrence of a test. For my working configuration with dune-multidomain and dumux-devel I expect an ever higher benefit.

Because I would not like to waste 20 s a gazillion of times, I want to include caching in dunecontrol similar to the resume function. For every configure I would delete the old cache and use the cache only for successive dune modules in the same configure run.

Libraries like dunecommon are currently not cached because we use our own test DUNE_* instead of AC_CHECK_LIB / AC_SEARCH_LIBS. The latter has built-in caching [2] but I think we can include this in most of our own macros.

I will investigate this further and create patches in a not too remote future.

But I'm afraid of Donald Knuth statement:
"We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil"

[0] http://lists.dune-project.org/pipermail/dune/2011-November/009736.html
[1] http://www.gnu.org/s/hello/manual/autoconf/Caching-Results.html
[2] http://www.gnu.org/s/hello/manual/autoconf/Libraries.html

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=984

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list