Re: Switch efficiency for large case-sets
Re: Switch efficiency for large case-sets
- Subject: Re: Switch efficiency for large case-sets
- From: Andrew Pinski <email@hidden>
- Date: Thu, 29 May 2003 11:46:59 -0400
Gcc produces switch tables for large switches.
Thanks,
Andrew Pinski
On Thursday, May 29, 2003, at 09:49 US/Eastern, Wade Tregaskis wrote:
Anyone have any idea how efficient the switch statement is for very
large case-sets, e.g. 500 cases? I'm hoping the compiler comes up
with intelligent ways of performing the required conditionals, and
doesn't just expand the switch out to a bunch of if..else's...
In this particular case I'm switching on a uint32, so it wouldn't be
too much trouble for me to break it down into if's and smaller
switches, if necessary.
Wade Tregaskis
-- Sed quis custodiet ipsos custodes?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.