comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Discriminated types with default discriminants
Date: 03 Nov 2005 18:10:54 -0500
Date: 2005-11-03T18:10:54-05:00	[thread overview]
Message-ID: <wccy845fhtt.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: op.szn9o4foz25lew@super

"Martin Krischik" <krischik@users.sourceforge.net> writes:

> Hint 1: unless this is homework: use Bounded_String or Unbounded_String
> -
> don't reinvent the wheel.

Well, that's usually good advice, but I had a case where changing a
single Bounded_String to my own buffer type increased speed by two
orders of magnitude.  It depends on the program, of course.
Initializing Bounded_Strings is surprisingly slow.

- Bob



  reply	other threads:[~2005-11-03 23:10 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-03 15:50 Discriminated types with default discriminants Maciej Sobczak
2005-11-03 16:06 ` Martin Krischik
2005-11-03 23:10   ` Robert A Duff [this message]
2005-11-04  5:01     ` Jeffrey R. Carter
2005-11-03 16:21 ` Ed Falis
2005-11-03 17:28 ` Dmitry A. Kazakov
2005-11-03 18:51 ` Jeffrey R. Carter
2005-11-03 23:08   ` Robert A Duff
2005-11-04  0:08     ` Adam Beneschan
2005-11-29  2:49       ` Randy Brukardt
2005-12-02 18:22         ` Robert A Duff
2005-11-04  9:18   ` Maciej Sobczak
2005-11-04  3:27 ` Brian May
2005-11-04 13:09   ` Stephen Leake
2005-11-04 17:58   ` Martin Krischik
replies disabled

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