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,FREEMAIL_FROM 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,UTF8 Received: by 10.68.36.6 with SMTP id m6mr3569495pbj.4.1322649637823; Wed, 30 Nov 2011 02:40:37 -0800 (PST) Path: lh20ni43632pbb.0!nntp.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Ann: Natools.Chunked_Strings, beta 1 Date: Wed, 30 Nov 2011 11:39:30 +0100 Organization: Ada @ Home Message-ID: References: <4ed4fc37$0$2537$ba4acef3@reader.news.orange.fr> NNTP-Posting-Host: fay3opEBJuB0wp2BP3xyUQ.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/11.60 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: news1.google.com comp.lang.ada:19258 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2011-11-30T11:39:30+01:00 List-Id: Le Tue, 29 Nov 2011 16:37:27 +0100, Pascal Obry a =C3=A9= crit: > Do you have some speed/memory comparison between your Chunked_String a= nd > GNAT Unbounded_String? > > Pascal. Probably not relevant as a generality: depends on string lengths. By the way, I feel the original message is based on erroneous assumption= s = about implementations of Ada.Strings.Unbounded. Nothing in the RM requir= es = an implementations to use a single array for unbounded strings, and on t= he = opposite, it says `type Unbounded_String is private;`. At least for that reason, I feel this would be even better to stick to t= he = exact same interface as the one of Ada.Strings.Unbounded. If that's = another implementation of Ada.Strings.Unbounded, then, this should expos= e = the same interface. This way, the client side could easily use one or th= e = other via static polymorphism. -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: [Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univer= sity]