comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R.Carter" <spam.jrcarter.not@spam.acm.org.not>
Subject: Re: String Buffer
Date: Thu, 2 Dec 2021 20:56:31 +0100	[thread overview]
Message-ID: <sob8df$vbj$1@dont-email.me> (raw)
In-Reply-To: <c80ebd43-1a92-4a05-a0db-7cb707191315n@googlegroups.com>

On 2021-12-02 19:17, Kevin Chadwick wrote:
> 
> Unbounded is said to be inefficient because it re-allocates.
> 
> In any case avoiding unbounded strings is almost certainly in the realm of premature optimisation
"Efficiency" is only meaningful in the context of a project's quantitative 
timing requirements: an efficient implementation allows the project to meet 
those requirements, while an inefficient implementation does not.

In the absence of such context, any claims of "inefficiency" (and especially 
blanket claims such as "Unbounded_String is inefficient") simply demonstrate the 
speaker's incompetence.

For an example of context, a decade ago I worked on a soft-real-time system that 
made extensive use of Unbounded_String and had no problem meeting its timing 
requirements. Unbounded_String was clearly efficient for that project. Since 
most projects that would use Unbounded_String have even less restrictive timing 
requirements than that system, it seems likely that Unbounded_String will be 
efficient for them, too.

-- 
Jeff Carter
"After fifteen minutes I wanted to marry her, and
after a half hour I completely gave up the idea of
snatching her purse."
Take the Money and Run
136

  reply	other threads:[~2021-12-02 19:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-02 18:17 String Buffer Kevin Chadwick
2021-12-02 19:56 ` Jeffrey R.Carter [this message]
2021-12-02 20:15   ` Dmitry A. Kazakov
2021-12-02 21:06     ` Jeffrey R.Carter
2021-12-02 21:45       ` Dmitry A. Kazakov
2021-12-03  0:49         ` Kevin Chadwick
2021-12-03  5:25       ` Randy Brukardt
2021-12-03  8:31   ` ldries46
2021-12-02 20:51 ` Simon Wright
2021-12-03  8:11 ` Vadim Godunko
replies disabled

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