|
Boost : |
From: Maxim Yegorushkin (e-maxim_at_[hidden])
Date: 2004-09-21 12:12:51
Igor Kholodov <C.JUMP_at_[hidden]> wrote:
> I am testing immutable string outside boost, using it
> as string type with common text transformation library
> (http://cttl.sourceforge.net/). It works quite well,
> about 18% speed is gained while parsing large XML
> documents (>1MB) when using const_string.
That is cool.
I think that for code written with const_string in mind the benefit can be
better.
> I would like to point out a couple of issues:
>
> First, there seems to be a typo in implementation of
> const_string& append(char_t c, size_t n). It should
> use a comma instead of dot when calling corresponding
> constructor of const_string. See const_string.hpp,
> line 444.
>
> Second, a lack of length() member function.
Thank you for the report, I'll check and fix it.
The interface still needs polishing, as well as the unit test.
-- Maxim Yegorushkin
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk