From: Florian Weimer <fw@deneb.cygnus.argh.org>
Subject: Re: Large strings in ADA
Date: 2000/04/17
Date: 2000-04-17T06:00:32+00:00 [thread overview]
Message-ID: <877ldxxo5b.fsf@deneb.cygnus.argh.org> (raw)
In-Reply-To: 38FA3003.A38D7B51@xpress.se
Johan Groth <jgroth@xpress.se> writes:
> for I in 1 .. 1600 loop
> Append_To_Msg(Str.Info, Basic_Natural(Str.Len), Msg, Last);
> if (I mod 100) = 0 then
> Put(" " & Integer'Image(I));
> end if;
> end loop;
For example, the GNAT implementation of Unbounded_String, results in
four allocator calls and copy operations per iteration, and this is
expensive. Perhaps you should switch to a different string-like type
which preallocates storage.
next prev parent reply other threads:[~2000-04-17 0:00 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-04-16 0:00 Large strings in ADA Johan Groth
2000-04-16 0:00 ` David Starner
2000-04-17 0:00 ` Robert Dewar
2000-04-17 0:00 ` Florian Weimer [this message]
2000-04-17 0:00 ` Dale Stanbrough
2000-04-17 0:00 ` tmoran
2000-04-17 0:00 ` Johan Groth
2000-04-17 0:00 ` Florian Weimer
2000-04-17 0:00 ` tmoran
2000-04-18 0:00 ` tmoran
2000-04-22 0:00 ` Johan Groth
2000-04-17 0:00 ` Robert Dewar
2000-04-17 0:00 ` David Starner
2000-04-17 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox