[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] Monotone performance degrades dramatically
From: |
Thomas Moschny |
Subject: |
Re: [Monotone-devel] Monotone performance degrades dramatically |
Date: |
Thu, 31 Aug 2006 20:57:30 +0200 |
User-agent: |
KMail/1.9.4 |
On Thursday 31 August 2006 19:45, Steven Grimm wrote:
> And I am definitely seeing performance degrade. The first 20 revisions
> took about 6 seconds to get through; now it's up at revision 485 and
> it's taking 2 seconds per commit. While it's sitting there it is chewing
> 100% of one of the machine's CPUs, so it doesn't seem to be I/O bound.
This is a known problem. The commit command calls get_branch_heads() (at
least) two times; and get_branch_heads() execution time is directly dependent
on the number of revisions already in that branch. This is not directly a bug
of get_branch_heads(), but a problem of erase_bogus_certs() which validates
certificates over and over again. This is absolutely unnecessary, because the
validity of a cert (not to be confused with the trust in that cert) is a
constant. It could be verified once and for all and stored in the database
together with the cert.
Simply no one has gotten around implementing that.
Thomas
--
Thomas Moschny <address@hidden>