I am looking to potentially switch my project from spidermonkey to v8.
v8 is quite faster on most of my tests but then is 10x slower on a
few.
It involves large strings (about 1MB) being converted from JS to a C++
cstr.
The string is pure ascii, and I was hoping it would be ascii by
default in JS.
But when converting, it seems that it's using wchar:

conversion to utf8: 2724ms
conversion to ascii: 2622ms
conversion to wchar: 10ms

I know that when creating a string from C++ I can force it to be ascii
in JS.
But is there a way to get strings created in JS to be ascii by
default?
Here it's way too slow and also takes 2x the memory.
thanks for pointers
AG

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

Reply via email to