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,1ea59bb198e88f9f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.cwix.com!news-in.mts.net!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail From: "Warren W. Gay VE3WWG" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: GNAT Ada.Streams Bug? References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Fri, 26 Nov 2004 12:30:19 -0500 NNTP-Posting-Host: 198.96.223.163 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1101490219 198.96.223.163 (Fri, 26 Nov 2004 12:30:19 EST) NNTP-Posting-Date: Fri, 26 Nov 2004 12:30:19 EST Organization: Bell Sympatico Xref: g2news1.google.com comp.lang.ada:6515 Date: 2004-11-26T12:30:19-05:00 List-Id: Georg Bauhaus wrote: > Warren W. Gay VE3WWG wrote: > : The point about efficiency is also a good one to raise. For > : example, if you String'Read(Stream,Var), GNAT calls the > : 'Read routine for each and every Character of the string. > : One pines for something more efficient than this, and I > : hope for the day when this improves in GNAT. (hint) > > While not a stream of elements, perhaps Fast_Read in > the XML/Ada sources is of interest? All kinds of possibilities are available when _you_ control the format. But when dealing with things like partition tables, and existing file formats, I find it disappointing that Ada95 struggles with this. I am happy to see that this problem is recognized, and will in some way be addressed in the Ada200Y standard. -- Warren W. Gay VE3WWG http://home.cogeco.ca/~ve3wwg