Re: [boost] immutable string

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. 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. Thanks, Igor Kholodov cttl@users.sourceforge.net --- Original Message --- From: "Maxim Yegorushkin" <e-maxim@yandex.ru> To: boost@lists.boost.org Subject: [boost] immutable string
Hello all,
I've been working on a small library - an immutable C++ string. Now it is in usable state and has been put in use in a couple of real projects. Although it needs further polishing, I would like to know is there any interest in such a library?
Here is the link: http://conststring.sourceforge.net/
-- Maxim Yegorushkin
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Igor Kholodov http://cttl.sourceforge.net/

Igor Kholodov <C.JUMP@prodigy.net> 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

Igor Kholodov <C.JUMP@prodigy.net> 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.
Could you please specify the compiler and STL implementation you use? -- Maxim Yegorushkin
participants (2)
-
Igor Kholodov
-
Maxim Yegorushkin