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!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Reserve_Capacity for Unbounded_String? Date: Thu, 26 Jul 2007 17:11:36 -0500 Organization: Jacob's private Usenet server Message-ID: References: <1185134043.892012.217560@n2g2000hse.googlegroups.com> <1185203238.701948.307410@m37g2000prh.googlegroups.com> <1185395844.104043.194340@o61g2000hsh.googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: jacob-sparre.dk 1185487757 24977 69.95.181.76 (26 Jul 2007 22:09:17 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Thu, 26 Jul 2007 22:09:17 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1807 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1896 Xref: g2news2.google.com comp.lang.ada:1212 Date: 2007-07-26T17:11:36-05:00 List-Id: "Maciej Sobczak" wrote in message news:1185395844.104043.194340@o61g2000hsh.googlegroups.com... ... > 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. Yes, but not if performance matters. If performance matters, doing a lot of small operations is the worst possible way to do it, irrespective of the implementation of those small operations. We chose > > I still don't think it is worth it, but obviously a customer example could > > change my mind. > > What about a customer who is choosing the competing product? Doesn't > sound convincing enough? No, because customers don't chose products because of the performance of one rarely used library call. They chose products because of price, features, ease of use, reputation of vendor, and quality of support. And it is also the case that they rarely tell the truth about why they chose something (partially because they often don't really have a clear understanding of that either). I'd rather spend our limited efforts on these factors (especially ease of use, where I don't think Janus/Ada really measures up very well) than chasing single customers with single changes, especially ones that will negatively impact other usage patterns. After all, my experience with chasing customers has uniformly been bad; they always have a new reason for not buying once you eliminate the last one. Randy.