|
From: | Pádraig Brady |
Subject: | Re: [PATCH] install: add -C option to install file only when necessary |
Date: | Mon, 16 Feb 2009 14:56:40 +0000 |
User-agent: | Thunderbird 2.0.0.6 (X11/20071008) |
Kamil Dudka wrote: > On Monday 16 February 2009 11:07:56 you wrote: >> Is 128KiB of stack OK? >> I noticed this related email from Eric: >> http://lists.gnu.org/archive/html/m4-patches/2008-08/msg00001.html > The idea of 64KiB on stack allocated buffers was taken from RHEL4 > implementation. But you are right - it can be problem on some platforms. > In this case it should be allocated dynamically. Any other ideas? I think 2 malloc'd buffers would be better. Also 4KiB it probably enough, as files will usually differ in the first 4096 bytes and if not readahead will be done underneath if appropriate. cheers, Pádraig.
[Prev in Thread] | Current Thread | [Next in Thread] |