[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] Re: long runtime of salmonella report
From: |
Alan Post |
Subject: |
[Chicken-users] Re: long runtime of salmonella report |
Date: |
Sun, 9 Jan 2011 01:07:28 -0700 |
On Sat, Jan 08, 2011 at 04:26:45PM -0700, Alan Post wrote:
> For the last two days, the Salmonella report has taken a
> signficantly longer time to run than it should.
>
> The problem is the test suite for the jbogenturfa'i egg.
> I'm tracking down a significant slowdown in the program,
> where one test suite was running in 20.6 seconds on the
> 6th and took 1524.6 and 1662.0 seconds over the next
> two days, respectively. As well, I added more tests,
> all of which are seeing the same slowdown.
>
> This egg takes 30-60 minutes for me to compile, which
> makes my debug cycle frustratingly long. I'm aware of
> and working on the problem, and will either remove/disable
> the tests or find and fix the problem over the next couple
> of days.
>
> If the runtime of the salmonella report is significantly
> affecting you, please report so and I'll disable the
> jbogenturfa'i tests today. I would like to add some timing
> tests and otherwise test using the testing system, so if
> it isn't significantly affecting you, I'd appreciate your
> patience.
>
> Thank you!
>
I've discovered what is going on. When building jbogenturfa'i
from scratch, I create a database then I compile the grammar.
When this happens, there is a bug which causes the grammar to
be compiled without memoization. If I then delete my generated
grammar and create it, but leave my database alone, the grammar
compiles with memoization (as intended) because the side-effect
isn't triggered.
Since I often don't have to rebuild my database, I was only seeing
this in the rare instances I did so. Other times things would
compile and run fine. For the salmonella report, it happens every
time, since the program is being built from scratch.
I haven't checked in a fix yet, but I'll do so ASAP.
-Alan
--
.i ko djuno fi le do sevzi