Boost logo

Boost :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2004-09-19 13:58:20


"Hartmut Kaiser" <hartmutkaiser_at_[hidden]> wrote in message
news:1C96Yi-0TQmY40_at_afwd01.sul.t-online.com...
>
> Beman Dawes wrote:
>
> > >Just wanted to mention here, that I've used const_string as
> > a plug in
> > >replacement for std::string for my Wave library and
> > succeeded without any
> > >further problems. Moreover, the const_string class gave a
> > perfomance
> > boost
> > >of about 20% if compared to the flex_string and about 100%
> > if compared to
> > >the std::string (I can provide the concrete numbers, if somebody is
> > >interested). But these numbers certainly very specific to
> > Wave and its
> > >applications.
> >
> > 100% gets my attention, that's for sure!
> >
> > Could you give a small example of a typical usage or two? I'd
> > like to form
> > an opinion as to how common the usage is likely to be.
>
> I've simply used the const_string class instead of the
> std::string/flex_string classes. The const_string class exposes a
> std::string compatible interface (sans the modifying member functions,
> certainly), so this was possible without problems.

I wouldn't want to rush things, but I'd like to point out that if you use
const_string in Wave, it might become a candidate for fast track review.

Jonathan


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