On Thu, Apr 12, 2012 at 3:39 PM, Michael Schwartz <[email protected]> wrote:

> In my case, I really coded for speed.  It got to the point in HTTP serving
> where an extra syscall or string copy was killing my requests/second
> performance by 10%.  That's like from 45,000 requests/second down to 40,000.
>

Obviously, my approach (lazy/convenient) is not appropriate there :).

I'm even questioning whether I even need HandleScope at all.  Every
> nanosecond counts! ;-)
>

i gave up handle scopes a long time ago - 99% of my code is called "from
v8", so i've never needed them. i didn't give them up for performance, but
because i just kept seeing weird crashes very often which went away when i
removed the handle scopes. So my vote is: don't feel bad about getting rid
of them. Funcs called "from v8" implicitly have a scope. Only funcs which
use v8 and are called from native code (possibly) need a handle scope. At
least that's my understanding based on past threads on this list.

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal

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

Reply via email to