[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cygwin: need to use the correct 'head.exe'
From: |
Max Bowsher |
Subject: |
Re: cygwin: need to use the correct 'head.exe' |
Date: |
Mon, 10 Mar 2003 17:09:37 -0000 |
Bob Friesenhahn wrote:
> On Mon, 10 Mar 2003, Max Bowsher wrote:
>
>>>> This patch adds $HEAD to the list of variables stored in the
>>>> libtool script, and during configury hunts for 'head.exe' in
>>>> preference to 'head' (or HEAD), and invokes the program thru that
>>>> variable rather than
>>>> directly. It should have no impact on other platforms -- beyond
>>>> adding
>>>> another unused variable to the libtool script (like OBJDUMP and
>>>> DLLTOOL
>>>> are now), since nothing but win32_libid() calls 'head' anyway.
>>
>> How about using "sed 10q" instead?
>
> I also believe it is worth investigating to see if using 'sed' is
> acceptable. It seems that the targets which execute win32_libid() are
> highly constrained so some simple testing will verify if sed is a
> reasonable substitute for those targets.
>
> Adding more tests to the configure script makes it larger and slower,
> which likely nullifies any benefits from using head.
I created a 1GB file consisting of many lines, each containing a single 'a'
character.
sed 10q on that file (after a reboot to clear any caches) completed without
noticable pause, and no substantial disc access.
Max.