Thread (10 messages) flat view 10 messages, 4 authors, 2016-08-13

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

From: Dmitry Potapov <hidden>
Date: 2016-06-15 22:48:19

On Mon, Feb 22, 2010 at 6:40 PM, Nicolas Pitre [off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help