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,64b29dfa2220a59f X-Google-Attributes: gid103376,public,usenet 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: Thu, 26 Jul 2007 00:06:02 +0200 From: Georg Bauhaus Organization: # User-Agent: Thunderbird 1.5.0.12 (Macintosh/20070509) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Reserve_Capacity for Unbounded_String? References: <1185134043.892012.217560@n2g2000hse.googlegroups.com> <1185203238.701948.307410@m37g2000prh.googlegroups.com> <1185395844.104043.194340@o61g2000hsh.googlegroups.com> In-Reply-To: <1185395844.104043.194340@o61g2000hsh.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <46a7c85b$0$3827$9b4e6d93@newsspool4.arcor-online.net> NNTP-Posting-Date: 26 Jul 2007 00:02:03 CEST NNTP-Posting-Host: 026b2993.newsspool4.arcor-online.net X-Trace: DXC=8@XY@::=F=j]BlmkiiU@Bi4IUKejVhYPh2Q[DjIAg5[ Maciej Sobczak wrote: > Building a string by appending small chunks to the end seems to be a > common practice. Optimizing the library for this case is a wise > implementation strategy. Is there some material on this? I'm wondering whether concatenating strings is more common in languages where strings are lists, or at least not plain arrays.