info-cvs
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]