Re: apr_file_copy performance on Win32
From: Will Dean <svn_at_indcomp.co.uk>
Date: 2004-11-02 21:37:20 CET
"Peter N. Lundblad" <peter@famlundblad.se> wrote in message
> I don't think BUFSIZ is the modern way of choosing a buffer size. Usually
I don't think anthing 'stat' is particularly standard.
I would say
#define APR_COPY_BLOCK_SIZE 65536
would be as good a way of dealing with this as any.
> We have a special version of file copying already. Using our own loop
I don't think I follow this paragraph!
Are you saying that there's an equivalent copy function in SVN which is
There does actually need to be a little bit of thought into the block size -
512byte blocks - about 2 seconds
CopyFile does a copy in 65536byte chunks and takes around 350ms.
Although tiny blocks are slow for obvious reasons, there is clearly some
However, I'd be suprised if 65536 turned to be a bad choice on any system,
> Ofcourse, getting it into APR is even
I haven't dared. Would a change like this make it into APR and through to
Will
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.