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-Thread: 103376,4fbd260da735f6f4 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!spamkiller.gnilink.net!gnilink.net!trnddc03.POSTED!72fcb693!not-for-mail From: Fionn Mac Cumhaill Newsgroups: comp.lang.ada Subject: Re: Reading and writing a big file in Ada (GNAT) on Windows XP Message-ID: References: <0hj5339mjmond132qhbn2o01unurs61lbj@4ax.com> X-Newsreader: Forte Agent 4.2/32.1117 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sun, 29 Apr 2007 21:35:46 GMT NNTP-Posting-Host: 71.170.31.60 X-Complaints-To: abuse@verizon.net X-Trace: trnddc03 1177882546 71.170.31.60 (Sun, 29 Apr 2007 17:35:46 EDT) NNTP-Posting-Date: Sun, 29 Apr 2007 17:35:46 EDT Xref: g2news1.google.com comp.lang.ada:15402 Date: 2007-04-29T21:35:46+00:00 List-Id: On Sat, 28 Apr 2007 08:41:26 -0400, Jeffrey Creem wrote: >Fionn Mac Cumhaill wrote: >> I have written a very simple program >> Do I have an Ada problem, a GNAT problem, or a MinGW problem? ... snip ... > >Is there any chance that the code is doing things like initializing the >string to blanks/nulls before each getline and or scanning beyond the >value returned for last when doing the replace? It does indeed initialize the string buffer. I put that in a a quick bug fix, but the version without the initialization still took 5 hours.