Status: New
Owner: ----
New issue 1425 by [email protected]: Low hanging performance-fruit
in Isolate::Enter.
http://code.google.com/p/v8/issues/detail?id=1425
Currently EntryStackItem instance is created on heap every time the Enter
function is called. I think it is suboptimal. The object have to be created
on heap only when Isolates are influencing each other which means that they
are called which in a recurrent algorithm. I suppose is an uncommon case
(at least for me :-) )
For this kind of code:
while() {
{
Isolate::Scope(isolate1);
// do stuff
}
{
Isolate::Scope(isolate2);
// do stuff
}
}
The EntryStackItem instance can be created on stack, which means reducing
cost of entering an isolate by 15-20 %
One of possible implementation would be to put a place holder inside the
Isolate class and use placement new syntax.
The change would be positive for Isolate::Exit too.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev