Comment #4 on issue 2275 by [email protected]: Disappointingly bad switch performance on V8
http://code.google.com/p/v8/issues/detail?id=2275

According to the log of d8, the big switch statment cannot be handled by Crankshaft:

[marking fetch 0x29042d70 for recompilation, reason: not much type info but very hot, ICs with typeinfo: 0/258 (0%)]
Bailout in HGraphBuilder: @"fetch": SwitchStatement: too many clauses

The limitation is set to 128 as I see now.

/src/hydrogen.cc:  const int kCaseClauseLimit = 128;

That could be the reason of bad performance.

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

Reply via email to