comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Yet another efficiency question - To_Lower
Date: 1997/07/04
Date: 1997-07-04T00:00:00+00:00	[thread overview]
Message-ID: <dewar.868021626@merv> (raw)
In-Reply-To: 5pclke$203$1@goanna.cs.rmit.edu.au


Dale asks

<<My simple view of the implementation of the function would be that it
allocates space (heap? secondary stack?), copies the values from
Some_String to the temporary, modifies the value, and then copies it
back. (I'm always concerned when I think I see cases of copies being
made for no good reason).
>>

Indeed, functions returning variable length results will alwqays be less
efficient than operating in place on an in out fixed length parameter
(fixed length for a particular call).





  parent reply	other threads:[~1997-07-04  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-07-02  0:00 Yet another efficiency question - To_Lower Dale Stanbrough
1997-07-03  0:00 ` Matthew Heaney
1997-07-04  0:00 ` Robert Dewar [this message]
1997-07-11  0:00 ` Dale Stanbrough
1997-07-11  0:00   ` Matthew Heaney
1997-07-15  0:00   ` Laurent Guerby
replies disabled

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