Memory allocation can be very perverse especially if you don't know what happens behind the curtain. From what I noticed a simple String allocation implies most of the time an internal char array allocation (pretty obvious) and many more that I can't now recall.
The rule is simple: If you can avoid it, do it. Any "new" in the drawing method is BAD. On Thu, Aug 27, 2009 at 3:37 PM, CG <[email protected]> wrote: > > I have now changed most of the strings to startup initialized char > arrays (missing 4) > and I am completely baffled by the perfomance gain. > > I went from a comlpete render loop time on ~350-500 to 170-350 > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

