From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,95c23095599677a5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-22 14:03:06 PST Path: supernews.google.com!sn-xit-02!sn-xit-04!supernews.com!xfer13.netnews.com!netnews.com!howland.erols.net!usc.edu!ragnarok.cts.com!thoth.cts.com!not-for-mail From: Keith Thompson Newsgroups: comp.lang.ada Subject: Re: Optimization Question Date: 22 Jan 2001 14:01:03 -0800 Organization: CTSnet Internet Services Sender: kst@king.cts.com Message-ID: References: <94ftfu$b59$1@nnrp1.deja.com> NNTP-Posting-Host: king.cts.com X-Trace: thoth.cts.com 980200864 4132 209.68.192.180 (22 Jan 2001 22:01:04 GMT) X-Complaints-To: abuse@cts.com NNTP-Posting-Date: Mon, 22 Jan 2001 22:01:04 +0000 (UTC) X-Newsreader: Gnus v5.5/Emacs 20.3 Xref: supernews.google.com comp.lang.ada:4337 Date: 2001-01-22T14:01:03-08:00 List-Id: dvdeug@my-deja.com writes: > I'm trying to write a program similar to the Unix utility strings, as my > copy of strings refuses to run a 17GB file. It seems to work, but it's > about 10x slower than strings, and rough calculations puts running time > on that 17GB file at 10 hours. I was going to suggest using GNU strings, until I realized you were already using it. If it has problems with a 17GB file, it's probably because it uses 32 bit file offsets, limiting the size to 2GB or 4GB. Depending on your OS and compiler, it may be possible to recompile, or possibly modify, the GNU strings program to handle huge files properly. If this is possible, it's likely to be easier than re-implementing it from scratch. (GNU strings is part of the binutils package; the latest sources are at .) Try the gcc and binutils documentation; if that's not illuminating, try a GNU or Linux newsgroup. -- Keith Thompson (The_Other_Keith) kst@cts.com San Diego Supercomputer Center <*> MAKE MONEY FAST!! DON'T FEED IT!!