Hey,

I am currently writing a Protocol Buffers library for Node.js.
Basically I am going to generate a thin v8 wrapper around the protobuf
generated C++ code. The main issue that I am coming up against is how
to convert a v8::String to a c string in an efficient way. Right now I
am doing:

String::AsciiValue data(args[0]->ToString());
ParseFromString(*data, data.length());

This works, but seems to be the main bottleneck that I am running up
against. Is there any more efficient way to go from v8::String ->
const char* or std::string?

Thanks.

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to