Boost logo

Boost :

From: Hartmut Kaiser (hartmutkaiser_at_[hidden])
Date: 2004-09-19 13:37:07

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.

Regards Hartmut

Boost list run by bdawes at, gregod at, cpdaniel at, john at