This is the mail archive of the cygwin-developers mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Performance optimization in av::fixup - use buffered IO, not mapped file


On 12/13/12 2:39 AM, Corinna Vinschen wrote:
> On Dec 13 01:44, Daniel Colascione wrote:
>> What about using the automatic sparse handling in lseek/lwrite and
>> ftruncate only when the file being operated on is already sparse?
> 
> That doesn't make sense.  If the file is already sparse, there's no
> reason to set the sparse flag in write or ftruncate again.  Also, if you
> set the sparse flag only on already sparse files, you will never be able
> to create sparse 

Yes, you're right. I thought I remembered a separate call we could
have retained to actually punch a hole in a sparse file. I checked
the code, and all we do is set the sparse flag.

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]