Switch statements generally compile to very efficient code. You might change it to something table driven, with an array of options, and it might be easier to maintain that way; but for speed of execution a switch statement will work very well.
HotHeart wrote: > I have switch with 255 cases in my project - DroidGear... > How i could optimize it? > > Sorry for my english > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

