← Back to team overview

instant team mailing list archive

[HG instant] Cleanup in cache system. Added test19.py which tests building and rebuilding with cache in several ways.

 

One or more new changesets pushed to the primary instant repository.
A short summary of the last three changesets is included below.

changeset:   246:93354337f9697e59ceef5b54e7f66c601768d79d
tag:         tip
user:        "Martin Sandve Alnæs <martinal@xxxxxxxxx>"
date:        Mon Sep 08 15:36:47 2008 +0200
files:       src/instant/build_module.py src/instant/cache.py src/instant/codegeneration.py src/instant/paths.py tests/test19.py
description:
Cleanup in cache system. Added test19.py which tests building and rebuilding with cache in several ways.

Behaviour of build_module is as follows:
- If modulename is provided, no cache is used and the module directory is placed locally.
  However, the module is not rebuilt if the checksum of the files is the same as last building.
- If signature is provided, it should be an identifier for the whole module configuration.
  That is, it must include information about the compilation flags etc.
  Otherwise, import_module(signature) wouldn't be possible.
  This mode is what FFC and SFC will use.
- If no modulename or signature is provided, a signature is computed from the checksum
  of all arguments and user-supplied files (i.e. not including the instant-generated files like setup.py).
  This mode is used by the inline* functions, and may be the best choice for dolfin.compile_function.


changeset:   245:148cae4f3232c6fd034d63ed65d396bf4431352e
user:        "Martin Sandve Alnæs <martinal@xxxxxxxxx>"
date:        Mon Sep 08 09:50:37 2008 +0200
files:       src/instant/build_module.py src/instant/cache.py src/instant/paths.py
description:
Split out another helper function from import_module.


changeset:   244:cfd1d33a6b55dfea69034d12f8d948fa7ab7b8ed
user:        "Martin Sandve Alnæs <martinal@xxxxxxxxx>"
date:        Sun Sep 07 23:14:37 2008 +0200
files:       src/instant/build_module.py src/instant/cache.py
description:
Cleanup in import_module, extracted multiple layer memory cache
to separate helper function. Now the signature is used as the
module name if it is a valid filename shorter than a constant
length (currently 100), and a checksum is computed from it otherwise.
TODO: Must use this helper function in build_module for consistent behaviour!


----------------------------------------------------------------------
For more details, visit http://www.fenics.org/hg/instant