[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Timestamp race avoidance in do_update()
From: |
Larry Jones |
Subject: |
Re: Timestamp race avoidance in do_update() |
Date: |
Wed, 14 Feb 2001 14:09:09 -0500 (EST) |
Laine Stump writes:
>
> What I'm wondering is if we could change the "sleep(1); to be a
> usleep(200) in a while loop instead. This should trim 1/2 a second
> from each invocation of commit, on average, which can be quite a lot
> when you're talking about several thousand files with dozens of
> revisions for each...
Unfortunately, usleep() isn't portable. Like I keep saying, the trick
(if you want to call it that) is to commit those several thousand files
with a single invocation of commit so you only pay the price once
instead of over and over and over.
-Larry Jones
I don't think math is a science, I think it's a religion. -- Calvin
- Timestamp race avoidance in do_update(), Brad Chisholm, 2001/02/12
- Re: Timestamp race avoidance in do_update(), Larry Jones, 2001/02/13
- Re: Timestamp race avoidance in do_update(), Laine Stump, 2001/02/14
- Re: Timestamp race avoidance in do_update(),
Larry Jones <=
- Re: Timestamp race avoidance in do_update(), Laine Stump, 2001/02/14
- Re: Timestamp race avoidance in do_update(), Larry Jones, 2001/02/14
- Re: Timestamp race avoidance in do_update(), Derek R. Price, 2001/02/14
- Re: Timestamp race avoidance in do_update(), Brad Chisholm, 2001/02/16
- Re: Timestamp race avoidance in do_update(), Laine Stump, 2001/02/16
- Re: Timestamp race avoidance in do_update(), Derek R. Price, 2001/02/16
- Re: Timestamp race avoidance in do_update(), Larry Jones, 2001/02/16
- Re: Timestamp race avoidance in do_update(), Derek R. Price, 2001/02/16
- Re: Timestamp race avoidance in do_update(), Paul Sander, 2001/02/15
- Re: Timestamp race avoidance in do_update(), laine+info-cvs, 2001/02/16