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!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.sun.com!news.sun.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 03 Sep 2009 03:49:28 -0500 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> <4a9d06b9$0$30234$9b4e6d93@newsspool1.arcor-online.net> <4a9d3162$0$30222$9b4e6d93@newsspool1.arcor-online.net> From: Ole-Hjalmar Kristensen Organization: Sun Microsystems Date: 03 Sep 2009 10:49:27 +0200 Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cache-Post-Path: news1nwk!unknown@khepri42.norway.sun.com X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-5DQ8c/CCLn42dXNR6e4G5aOBjTEXb0qncmfdo/DNk3L/tSwMMNRfq3zD/7BHsesJ21189MsWu/g+Wkl!9yQIYUdvC1jr9Gtxb4tBIRWObOTJjfRKOltGR3UU/50s7h8EJLJ8f20k X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 Xref: g2news2.google.com comp.lang.ada:8123 Date: 2009-09-03T10:49:27+02:00 List-Id: Just another thought: Would reading the string into a large enough buffer and just return a string descriptor (pointer and bounds) to the line be considered cheating? That way, you could avoid ever copying strings, just copy the whole of stdin to a large buffer and return the lines as descriptors. -- C++: The power, elegance and simplicity of a hand grenade.