← Back to team overview

instant team mailing list archive

Re: Instant cache problem

 

On Sun, Feb 14, 2010 at 10:04:52PM +0000, Garth N. Wells wrote:
> I get the below.
>
> Garth
>
> --- Instant: compiling ---
> t = 3.736186  ((1) With modulename)
> t = 0.002224  ((2) With modulename)
> python -c "import test19_ext"
> --- Instant: compiling ---
> t = 3.776908  ((1) With signature)
> t = 0.000476  ((2) With signature)
> t = 0.000020  ((3) import_module)
> python -c "import instant; assert
> instant.import_module('test19_signature_module', 'test19_cache') is not
> None"
> --- Instant: compiling ---
> t = 2.388674  ((1) With signature)
> t = 0.000467  ((2) With signature)
> t = 0.000020  ((3) import_module)
> python -c "import instant; assert
> instant.import_module('((test19_signature_module))', 'test19_cache') is
> not None"
> t = 1.502452  ((1) With signature)
> t = 1.501916  ((2) With signature)
> t = 1.500936  ((3) import_module)
> --- Instant: compiling ---
> t = 3.925416  ((1) Without modulename or signature)
> t = 0.000864  ((2) Without modulename or signature)

Now it fails for me again. My system seems to behave randomly today...

python -c "import instant; assert
instant.import_module('((test19_signature_module))', 'test19_cache')
is not None"
t = 1.502965  ((1) With signature)
t = 1.503044  ((2) With signature)
Traceback (most recent call last):
  File "test19.py", line 120, in <module>
    assert t1 > t2
AssertionError

I'll disable that unit test and add a bug report for someone to look
at later.

--
Anders



>
> Anders Logg wrote:
> > This test seems to work now for me, with and without instant-clean:
> >
> >  python -c "import instant; assert
> >  instant.import_module('((test19_signature_module))', 'test19_cache')
> >  is not None"
> >  t = 2.003545  ((1) With signature)
> >  t = 0.501446  ((2) With signature)
> >  t = 0.500733  ((3) import_module)
> >
> > I'm pretty sure I didn't touch anything. Does it work/fail for anyone
> > else?
> >
>
>

Attachment: signature.asc
Description: Digital signature


References