On Mon, Jul 8, 2013 at 5:43 AM, Trevor Norris <[email protected]> wrote:

> Ben just landed the 3.20.x upgrade to Node, and I'm noticing a non-trivial
> performance regression using Persistent<>. Before it was fast to cache
> objects that would be passed to Function::Call as Persistent<Object>, but
> now it seems to require a Local<Object>::New(Isolate*, Persistent<Object>)
> before being sent. For quick calls out of cc to js it's adding ~10% to call
> time. Is there a way around this regression that I'm not seeing?
>

I'm not quite sure what you mean.  Do you mean you want to return a value
stored in a Persistent? If so, that's done via
GetReturnValue().Set(Persistent&).  That should take care of the regression
if that's the case.  If not, could you provide me with an example?

-- 
-- 
v8-users mailing list
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to