On Tue, Aug 11, 2009 at 8:15 PM, Yingfeng <yingfeng.zh...@gmail.com> wrote:

>
> Hi,
> As is known to lots of people, std::string performs not good for such
> reasons as copy-on-write,... etc.


Note that the C++ protobuf implementation generally assumes that string
copies are expensive and avoids them as much as possible -- we don't rely on
COW for anything.  Also note that GCC is planning to switch its default
string implementation back to non-COW (or maybe it already has; I haven't
kept track).


> So in my own system i have my own string utilities replaced all
> std::string. How could i serialize my own string using protocol
> buffer?


Unfortunately there is no way to do this at this time.  Trying to support
arbitrary string representations would present a lot of difficulties.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to