google v8 - performance for multithreaded applications C++
<p>I precompile and store the context and script. I just run the script in the following funtion.
I have a function as follows:</p>

<p>Execute{</p>

<pre><code>       //isolate is a member variable initialized in constructor.
        v8::Locker l( isolate );
       v8::Isolate::Scope iscope( isolate );
       v8::HandleScope handle_scope;

      for(int i = 0; i &lt; 1; i++)
      {
                //pV8Item is the object (structure) where is store the persistent                        handle of context and compiled script
               ( pV8Item-&gt;contextOrder )-&gt;Enter();
                ( pV8Item-&gt;objOrder )-&gt;SetInternalField( 0, v8::External::New(order) );
             ( pV8Item-&gt;sRulepCompExp )-&gt;Run()
        }
  }
</code></pre>

<p>I call the above function 100000 times. There is a performance hit on the timing. Any idea on how to improve the performance.</p>
