Hi,

What is the most efficient way to compile a (large) script that is being 
passed in as an UTF-8 char buffer?

The ExternalOwningOneByteStringResource is really nice for ASCII buffers, 
but it looks like for UTF-8 we need to copy the entire contents and covert 
with NewFromUtf8. It also looks like this memory (converted script source) 
sticks around for the lifetime of the Isolate.

For really large bundles, it's a waste to keep 2 copies of the script 
source in memory; are there any optimizations / alternatives to consider?

How feasible would it be to create something like 
ExternalOwningUTF8StringResource?

Thank you!

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-users/4f7239b6-a819-44bd-999f-71adae81263dn%40googlegroups.com.

Reply via email to