• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Optimizing bytecode size

 
Pho Tek
Ranch Hand
Posts: 782
Chrome Python Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My MIDLET size is currently 63992 bytes (this is with obsfucation).
I want to reduce the size furthermore.

(1) What kinds of programming tips & tricks would reduce bytecode size() ?
I am aware of:
  • Eliminate useless reevaluations inside loops
  • Eliminate common subexpressions


  • (2) Which obsfucators are the best (in size reduction)?

    Thanks

    Pho
     
    Mark Spritzler
    ranger
    Sheriff
    Posts: 17278
    6
    IntelliJ IDE Mac Spring
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    1. No Packages
    2. Reduce number of classes by combining some of them. Yes it is less OO, but reduces size.
    3. smaller images?

    Mark
     
    Eduardo Marques
    Ranch Hand
    Posts: 231
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Try JARG - http://jarg.sourceforge.net
    It uses a number of techniques to obfuscate and reduce JAR files.
     
    Michael Charland
    Greenhorn
    Posts: 3
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    You can also combine pictures into one file.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic