The function having the performance hit : 
 

v8::Locker l( isolate );

v8::Isolate::Scope iscope( isolate );

v8::HandleScope handle_scope;
for(int i = 0; i < 1; i++)
{
//pV8Item is the object (structure) where is store the persistent handle of 
context and compiled script

( pV8Item->contextOrder )->Enter();

( pV8Item->objOrder )->SetInternalField( 0, v8::External::New(order) );

( pV8Item->sRulepCompExp )->Run();
 
 
}

On Tuesday, January 22, 2013 1:54:13 PM UTC+5:30, Neha wrote:

> Hi,
>  
> I store the context and compiled source in a persistent handle.
> Later i try to retrive the persistent handle and in the stored context try 
> the run the script.
>  
> like->
>  
> context->Enter();
> script->Run();
> context->Exit();
>  
> I see a huge performance hit here. It takes about 500 ms to just execute 
> the above three statements. is there any solution to this?
>

-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users

Reply via email to