Boost logo

Boost :

From: Rob Stewart (stewart_at_[hidden])
Date: 2002-08-30 11:53:27


From: John Levon <levon_at_[hidden]>
> On Fri, Aug 30, 2002 at 12:27:58PM -0400, Rob Stewart wrote:
>
> > > But that would add an additional copy
> > > of the demangled name.
> >
> > Yep. There's no problem there. Really. We're talking about
> > diagnostic code here. Performance isn't an issue.
>
> Demangling is not only used for diagnostic code. Think "nm" here.

I understand your point, but as I wrote in a recent post, there
aren't many such use cases. (You might think of more than I, but
the primary use is in diagnostic code. Besides, the iterator
interface would seem to permit all of the memory optimizations
one could want.)

> Nonetheless, this desire to avoid a string copy seems like rampant
> premature optimisation.

Precisely.

-- 
Rob Stewart                           stewart_at_[hidden]
Software Engineer                     http://www.sig.com
Susquehanna International Group, LLP  using std::disclaimer;

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk