bug-coreutils
[Top][All Lists]
Advanced

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

Re: Optimal buffer size for copy


From: Paul Eggert
Subject: Re: Optimal buffer size for copy
Date: 06 Nov 2003 12:03:46 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Sorry to be a pain, but I now remember that there's similar code in
diffutils/lib/cmpbuf.c's buffer_lcm function.  It attempts to yield
reasonable values if buffer sizes are zero, and it does a sanity check
against maximum "reasonable" values.  This all came about because of
freaky buffer sizes in various operating systems, so I expect we'd run
into similar problems here.

Suppose we just split out buffer_lcm into a separate module and use
that?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]