This is a question about something that came to mind to try to improve the performance of a midlet.
In your opinion which is the best approach:
1) Use System.getProperty("microedition.platform") each time i need that information
2) Save the value in a global variable and retrieve it each time needed
I think that the 1st one use less memory and the 2nd one executes faster...
Any other comments guys ? I think that i would go for the 2nd approach because it's much cleaner code and it executes faster. But i would appreciate if maybe there are some of you who have some other ideas about these different approaches...