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=0.7 required=5.0 tests=BAYES_00,MSGID_RANDY autolearn=no 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 12:30:15 PST Path: supernews.google.com!sn-xit-02!sn-xit-04!supernews.com!xfer13.netnews.com!netnews.com!cpk-news-hub1.bbnplanet.com!news.gtei.net!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: dvdeug@my-deja.com Newsgroups: comp.lang.ada Subject: Re: Optimization Question Date: Mon, 22 Jan 2001 20:22:43 GMT Organization: Deja.com Message-ID: <94i4q8$65e$1@nnrp1.deja.com> References: <94ftfu$b59$1@nnrp1.deja.com> <94g431$ge3$1@nnrp1.deja.com> <94g920$k64$1@nnrp1.deja.com> <3A6C8432.665A730C@mail.com> NNTP-Posting-Host: 139.78.80.137 X-Article-Creation-Date: Mon Jan 22 20:22:43 2001 GMT X-Http-User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.4.0 i686; Nav) X-Http-Proxy: 1.0 x53.deja.com:80 (Squid/1.1.22) for client 139.78.80.137 X-MyDeja-Info: XMYDJUIDdvdeug Xref: supernews.google.com comp.lang.ada:4332 Date: 2001-01-22T20:22:43+00:00 List-Id: In article <3A6C8432.665A730C@mail.com>, "M. Kotiaho" wrote: > As has been pointed out elsewhere, you can use Streams to read "big chunks" > at a time. As you pointed out, you don't want to read 17 GB into memory. That's actually a moot point, as the GNAT runtime on Linux/i386 seems to have as much problems handling the file as most C programs. It appears I'm going to have to run it through a pipe . . . > You also might want to buffer your output, rather than outputting > the > strings as soon as they are located. My biggest problem with this is that it was a nice simple program until buffering started coming in. I guess if I can get it significatly faster than GNU strings, I may as well finish up the details and release it . . . -- David Starner - dstarner98@aasaa.ofe.org -- David Starner - dvdeug@my-dejanews.com, dstarner98@aasaa.ofe.org, dvdeug@hotmail.com GURPS: http://w Sent via Deja.com http://www.deja.com/