← Back to team overview

instant team mailing list archive

Re: Make instant go faster (patch)

 

On 26 January 2011 21:46, Joachim Berdal Haga <jobh@xxxxxxxxx> wrote:
> The attached patch makes instant much faster.

http://fenicsproject.org/developer/developer.html#contributing-patches

and then try again... :)

Kristian

> For my DOLFIN simulator, the time for startup (until the time loop is
> reached) is reduced from 3.1s to 1.5s with fully populated instant cache,
> and from 60 seconds to 31 seconds with clean cache.
> The patch just adds in-process caching of pkg-config calls, of the
> swig-version call, and it collapses two calls to "python setup.py" into one.
> It is a bit ugly, it was done in a hurry, but I thought the improvements
> were good enough to share. Lightly tested, seems to work.
> (I am actually very surprised by the clean-cache improvement, which seems
> much too large. It makes me uneasy about the patch. But my simulator seems
> to run the same as before...)
> -j.
> _______________________________________________
> Mailing list: https://launchpad.net/~instant
> Post to     : instant@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~instant
> More help   : https://help.launchpad.net/ListHelp
>
>



References