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: a07f3367d7,3a6a9f1d654285ba X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Tue, 01 Sep 2009 11:29:46 +0200 From: Georg Bauhaus User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada Shootout program for K-Nucleotide (patches) References: <4a743343$0$32674$9b4e6d93@newsspool2.arcor-online.net> <0c18b36c-7af0-454c-8208-9b0416111a1f@w41g2000yqb.googlegroups.com> <4a758ce2$0$31338$9b4e6d93@newsspool4.arcor-online.net> <4a967b33$0$32671$9b4e6d93@newsspool2.arcor-online.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4a9ce98b$0$30226$9b4e6d93@newsspool1.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 01 Sep 2009 11:29:47 CEST NNTP-Posting-Host: 1b69ffc1.newsspool1.arcor-online.net X-Trace: DXC=Pbd1ZEd>jlK2>IgHGdic==]BZ:afn4Fo<]lROoRa^YC2XCjHcbi\cIhE]BZjMb;9OJDO8_SKfNSZ1n^B98ijWUdoB5YTZ]o X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:8093 Date: 2009-09-01T11:29:47+02:00 List-Id: Ole-Hjalmar Kristensen schrieb: > I see the C++ version uses fgets, which is a reasonably fast way of > getting a line. Is there any reason not to use fgets? > fgets (OpenSolaris version) uses memccpy to actually copy the buffer > until the newline: There were two reasons not to import fgets: 1 - fgets turns out not to be faster than Stream_IO. 2 - It's C. ;-) The fasta entry at the Shootout which uses Unchecked_Conversion, not 'Address could even be improved a small bit if we change it to use 'Address. But then, this adds to the line count. Is it worth it, for a shorter program? There was a discussion leading to this (<4a7b4daa$0$31333$9b4e6d93@newsspool4.arcor-online.net>) early in August.