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!postnews.google.com!o5g2000hsb.googlegroups.com!not-for-mail From: george@gentoo.org Newsgroups: comp.lang.ada Subject: Re: Reading and writing a big file in Ada (GNAT) on Windows XP Date: 2 May 2007 00:46:07 -0700 Organization: http://groups.google.com Message-ID: <1178091967.392381.282510@o5g2000hsb.googlegroups.com> References: <0hj5339mjmond132qhbn2o01unurs61lbj@4ax.com> NNTP-Posting-Host: 85.218.50.248 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1178091968 28849 127.0.0.1 (2 May 2007 07:46:08 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 2 May 2007 07:46:08 +0000 (UTC) In-Reply-To: <0hj5339mjmond132qhbn2o01unurs61lbj@4ax.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en_US, uk, fr, de, ru; rv:1.7.3) Gecko/20040916,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: o5g2000hsb.googlegroups.com; posting-host=85.218.50.248; posting-account=Rd6r_Q0AAAA6EEVQqsubWwcFg5gPo_o3 Xref: g2news1.google.com comp.lang.ada:15452 Date: 2007-05-02T00:46:07-07:00 List-Id: Fionn Mac Cumhaill wrote: > All it does is read lines in a loop from a text file with > Ada.Text_IO.Get_Line, does minor modifications on about 80% of the > lines that it reads, and writes the lines to an output file with > Put_Line. Looks like a perfect task for sed utility to me. Even if sed does not do all you need you can at the very least check some simple sed transformation on your data, which should give you an estimate of what run times you can expect with your file. I am not familiar with MinGW environment. If it is anything like CygWin then you should be able to run GNU tools and perform that test with sed. At least this should answer the > Do I have an Ada problem, a GNAT problem, or a MinGW problem? (and CygWin does tend to be slower than native computation, however I used it only a few times). George