[Unison-hackers] Unix.sleep insufficient for -repeat! Need half seconds.

Ryan Newton newton at mit.edu
Sat Apr 21 21:42:32 EDT 2007


Sorry, the email that just went out from me was written a couple days  
ago but got stalled in my outbox.  Thus it didn't take into account  
these more recent messages.

It's good to hear that this change will fly in windows too.  When I  
get a chance, I'll give this a try myself, or maybe someone will beat  
me to it.

Ben: Actually, the tree I'm syncing has over a thousand files.   
Still, unison performs admirably.  I see 8% cpu utilization at a one- 
second repeat, and 12% utilization with half-second repeat (opteron  
250, 2.4 ghz).  But, I agree, a watcher program would be nice.

-Ryan


On Apr 20, 2007, at 11:22 PM, Benjamin Pierce wrote:

> Perfect.  So this change should be pretty easy, then.
>
> Thanks,
>
>     - B
>
>
> On Apr 20, 2007, at 6:59 PM, Joseph Dunn wrote:
>
>> On Fri, 20 Apr 2007 11:54:33 -0400
>> Benjamin Pierce <bcpierce at cis.upenn.edu> wrote:
>>
>>> I'd be very happy to see this change.  Couple of thoughts:
>>>
>>> * One reason that usleep is not wrapped for OCaml might be (I don't
>>> know) that Win32 doesn't offer something comparable.  Whatever
>>> solution is adopted here needs to at least compile cross-platform,
>>> even if the full functionality isn't available everywhere.  And it
>>> needs to degrade in a graceful way.
>>>
>>
>> The argument to the Windows Sleep() function is in milliseconds,  
>> so if
>> that's fine enough granularity for you then you can make a cross
>> platform millisecond sleep without much trouble.  Alternatively,
>> people
>> sometimes use calls to select() to do sub second timings, but it's  
>> not
>> the best way to go.
>>
>> -Joseph
>> _______________________________________________
>> Unison-hackers mailing list
>> Unison-hackers at lists.seas.upenn.edu
>> http://lists.seas.upenn.edu/mailman/listinfo/unison-hackers
>
> _______________________________________________
> Unison-hackers mailing list
> Unison-hackers at lists.seas.upenn.edu
> http://lists.seas.upenn.edu/mailman/listinfo/unison-hackers



More information about the Unison-hackers mailing list