← Back to team overview

instant team mailing list archive

Re: md5 deprecated

 

2008/9/1 Anders Logg <logg@xxxxxxxxx>:
> On Mon, Sep 01, 2008 at 01:07:33PM +0200, Martin Sandve Alnæs wrote:
>> Another suggestion for the TODO list (but not on the top!):
>> - Implement in-memory cache for already imported modules (based on signature)
>>   I.e. a global dict on the form
>>   _module_cache = { "module signature": previously_compiled_module }
>>   which is looked up transparently.
>
> It should not need to be mapped specifically from a signature, but
> should work for everything that is hashable (which means we can just
> use a dictionary).
>
> FFC keeps a module cache based on the form object (since computing the
> signature may sometimes take time).
>
> --
> Anders

Computing repr(form) + repr(options) shouldn't take much time?
Anyway, the signature in question here may be a signature passed
by the user (e.g. FFC), i.e. it can be a hash string of anything you want.

--
Martin


Follow ups

References