[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] Unnecessary performance hit on push?
From: |
Nathaniel Smith |
Subject: |
Re: [Monotone-devel] Unnecessary performance hit on push? |
Date: |
Fri, 30 Sep 2005 20:03:58 -0700 |
User-agent: |
Mutt/1.5.9i |
On Fri, Sep 30, 2005 at 09:09:55PM +0200, Marcel van der Boom wrote:
> However, at least on osx, i see some rather weird behaviour:
[...]
> What on earth is the system doing during the 7 mins? After the
> "Found 123 branches" theoretically it loops 122 times with 1 find
> statement to execute in each loop?
> The second and later runs stay around 12-15 secs which seems normal.
> The long delay between the "Found 123 branches" and the "Branch has
> 77 revs to consider" is then gone too.
Just a guess, but what happens if you put a transaction guard around
the whole chunk? (OS X has extra-paranoid disk-flushing stuff, that
makes wrapping multiple writes into a single transaction _very_
important. I don't know why it would matter here, since naively it
looks like we're just reading, but...)
transaction_guard guard(app.db);
<do stuff>
guard.commit();
-- Nathaniel
--
"On arrival in my ward I was immediately served with lunch. `This is
what you ordered yesterday.' I pointed out that I had just arrived,
only to be told: `This is what your bed ordered.'"
-- Letter to the Editor, The Times, September 2000
This email may be read aloud.