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,a65bb7bde679ed1d X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.15.41 with SMTP id u9mr9017833pbc.3.1322842621917; Fri, 02 Dec 2011 08:17:01 -0800 (PST) Path: lh20ni59286pbb.0!nntp.google.com!news2.google.com!news.glorb.com!feeder.erje.net!fi.sn.net!newsfeed2.tdcnet.fi!news.song.fi!not-for-mail Date: Fri, 2 Dec 2011 18:16:53 +0200 From: Tero Koskinen Newsgroups: comp.lang.ada Subject: Re: Ann: Natools.Chunked_Strings, beta 1 Message-Id: <20111202181653.e6a844613c2521b62a7571a3@iki.fi> References: <4ed4fc37$0$2537$ba4acef3@reader.news.orange.fr> X-Newsreader: Sylpheed 3.2.0beta3 (GTK+ 2.24.8; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Organization: NBL Networks Oy NNTP-Posting-Host: 217.30.184.161 X-Trace: 1322842770 news.nbl.fi 4372 217.30.184.161:36818 X-Complaints-To: abuse@nblnetworks.fi Xref: news2.google.com comp.lang.ada:14794 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: 2011-12-02T18:16:53+02:00 List-Id: On Wed, 30 Nov 2011 12:39:36 -0700 Jeffrey Carter wrote: > Justifications for rewriting Unbounded_Strings are > > 1. For fun > 2. As a learning experience > 3. You have timing requirements you can't otherwise meet. 4th case is portability across compilers if you need to have more than 32K bytes of data. At least Janus/Ada has 16-bit Integers and the size of the Unbounded_String is limited to Integer'Last. For example, in my Twitter/Identi.ca client[1], I need to handle 40K..100Kbytes long JSON data from the server and that cannot fit into Unbounded_String when I use Janus/Ada. I also run into 3rd item with ICCAda. In my Twitter use case, appending data and then reading it from Unbounded_String, is multiple times slower with ICCAda than with Janus/Ada or GNAT. -- Tero Koskinen - http://iki.fi/tero.koskinen/ [1] https://bitbucket.org/tkoskine/ladybird