comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Ann: Natools.Chunked_Strings, beta 1
Date: Wed, 30 Nov 2011 12:39:36 -0700
Date: 2011-11-30T12:39:36-07:00	[thread overview]
Message-ID: <jb6101$7nt$1@tornado.tornevall.net> (raw)
In-Reply-To: <slrnjdcal3.1lme.lithiumcat@sigil.instinctive.eu>

On 11/30/2011 06:08 AM, Natasha Kerensikova wrote:
>
> [An implementation optimized for appending should have better performance for
> that use and GNAT's Unbounded_String uses a contiguous array] Combined with
> the fact I use GNAT is enough (for me) to justify writing
> Natools.Chunked_Strings.

Justifications for rewriting Unbounded_Strings are

1. For fun
2. As a learning experience
3. You have timing requirements you can't otherwise meet.

3. does not appear to be the case here; you're planning to write something, but
you have yet to demonstrate that Unbounded_Strings isn't suitable for its timing 
requirements. So you're doing it for 1. or 2. Doing it for 3. when you haven't 
demonstrated 3. is premature optimization, AKA the root of all evil.

Doing it for 1. or 2. is fine, but means that comments about efficiency or 
performance are irrelevant.

FWIW, we have a large, soft-real-time system that makes extensive use of 
Unbounded_Strings, and have no problem meeting our timing requirements.

-- 
Jeff Carter
"My dear Mrs. Hemoglobin, when I first saw you, I
was so enamored with your beauty I ran to the basket,
jumped in, went down to the city, and bought myself a
wedding outfit."
Never Give a Sucker an Even Break
111



  reply	other threads:[~2011-11-30 19:39 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-29 15:16 Ann: Natools.Chunked_Strings, beta 1 Natasha Kerensikova
2011-11-29 15:37 ` Pascal Obry
2011-11-29 16:34   ` Natasha Kerensikova
2011-11-29 17:08     ` Georg Bauhaus
2011-11-30  9:51       ` Natasha Kerensikova
2011-11-29 20:25     ` Randy Brukardt
2011-11-30 10:44     ` Yannick Duchêne (Hibou57)
2011-11-30 10:39   ` Yannick Duchêne (Hibou57)
2011-11-30 10:57     ` Dmitry A. Kazakov
2011-12-01  0:11       ` Randy Brukardt
2011-12-01  8:30         ` Dmitry A. Kazakov
2011-12-01 23:26           ` Vinzent Hoefler
2011-12-02  8:27             ` Dmitry A. Kazakov
2011-12-02  9:30               ` Georg Bauhaus
2011-12-02 13:11                 ` Dmitry A. Kazakov
2011-12-02  0:39           ` Randy Brukardt
2011-12-01  9:02         ` Yannick Duchêne (Hibou57)
2011-11-30 13:08     ` Natasha Kerensikova
2011-11-30 19:39       ` Jeffrey Carter [this message]
2011-12-01 10:57         ` Natasha Kerensikova
2011-12-01 19:07           ` Jeffrey Carter
2011-12-01 21:19             ` Yannick Duchêne (Hibou57)
2011-12-01 22:49               ` Natasha Kerensikova
2011-12-02 16:16         ` Tero Koskinen
2011-12-02 17:36           ` Adam Beneschan
2011-12-02 18:52             ` Tero Koskinen
2011-12-02 18:14           ` Yannick Duchêne (Hibou57)
2011-12-02 19:07             ` Adam Beneschan
2011-11-30 10:33 ` Yannick Duchêne (Hibou57)
2011-11-30 11:04   ` Natasha Kerensikova
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox