On Oct 26, 11:15 am, Andrei <[email protected]> wrote: > Does Android optimize same const strings? > If I have 2 "foo" strings in java file will it create one or two > instances in class file, dex file? > In my experiment it does not
javac combines identical strings within a class file, and "dx" combines identical strings across class files. There should only be one occurrence of a string constant within a DEX file. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

