Hi,

I noticed a performance cliff when using switch case statements longer than 
10 cases. I did a bit of poking around and noticed that different 
instructions are used to handle cases above the 10th. Until the 10th its 
"JumpIfTrue" and above "JumpIfTrueConstant".

Two questions:
 - are people aware of performance optimisation where switch-case 
statements might deteriorate after 10 cases?
 - might those different bytecode instructions be causing this?

Thanks,
Pawel

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-users/7ac7c50a-3572-4ec2-9b42-cab21215ff9an%40googlegroups.com.

Reply via email to