Summary

Team-Fly

MIDP applications are targeted to run on a small platform, which means that using memory and processing power efficiently is important. Creating and destroying objects is expensive, so one way to optimize your code is to reduce the number of objects you create. One common source of new objects is code that creates Strings. Consider optimizing String manipulation using StringBuffer or character arrays. Similarly, you may be able to streamline code by using object arrays in place of Vectors or Hashtables. Remember that performance is as much about perception as anything else; provide a responsive, active user interface and handle failures gracefully. You can also optimize the delivery of your application in several ways. First, partitioning the functionality of your application intelligently can reduce the runtime footprint of your application. Next, trimming out excess classes can reduce the size of your MIDlet suite JAR. Finally, a bytecode obfuscator can further reduce the size of your MIDlet suite JAR.


Team-Fly


Wireless Java. Developing with J2ME
ColdFusion MX Professional Projects
ISBN: 1590590775
EAN: 2147483647
Year: 2000
Pages: 129

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net