Article View: gnu.utils.bug
Article #767GNU `wc -c' optimization
From: Francois Pinard
Date: Wed, 09 Sep 1992 14:36
Date: Wed, 09 Sep 1992 14:36
22 lines
1500 bytes
1500 bytes
Whether the optimization is worth putting in depends on how often people use wc -c, I guess. The unsharing process, among others, makes frequent use of `wc -c'. The `wc -c' usage which originated this thread was a `ddsplit' script (for a particular machine where I may not install GNU split) where I needed to know the overall size of a big file for computing the number of resulting pieces. It happened that the "size=`wc -c $input`" line was taking a fair amount of real time. Being curious, I just checked how GNU wc would behave on the same problem and discovered it was not as fast as I would have expected. I think GNU wc should be made faster, would it be only for the principle that GNU programs should do the best/proper thing in all circumstances :-). Keep all happy! -- Franc,ois Pinard ``Vivement GNU!'' pinard@iro.umontreal.ca (514) 588-4656 ...!uunet!iros1!pinard Consider joining the League for Programming Freedom. Email for details!
Technical Details
Message-ID:
<9209091436.AA02867@icule.UUCP>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!icule.UUCP!pinardReferences:
<9209080501.AA15291@comton.airs.com>Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!icule.UUCP!pinard From: pinard@icule.UUCP (Francois Pinard) Subject: GNU `wc -c' optimization Message-ID: <9209091436.AA02867@icule.UUCP> Sender: gnulists@ai.mit.edu Reply-To: pinard@iro.umontreal.ca Organization: GNUs Not Usenet References: <9209080501.AA15291@comton.airs.com> Distribution: gnu Date: Wed, 9 Sep 1992 14:36:44 GMT Approved: bug-gnu-utils@prep.ai.mit.edu Lines: 23