Re: [PATCH] Teach "git add" and friends to be paranoid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 22, 2010 at 6:40 PM, Nicolas Pitre <nico@xxxxxxxxxxx> wrote:
>
> read() is not always a winner.  A read() call will always have the data
> duplicated in memory.  Especially with large files, it is more efficient
> on the system as a whole to mmap() a 50 MB file rather than allocating

Agreed. I meant it was faster on data that I measured, which was <=1Mb.
IMHO, read() should be used up to 64Kb.

Dmitry
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]