Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Java (http://www.velocityreviews.com/forums/f30-java.html)
-   -   java code compression (http://www.velocityreviews.com/forums/t125952-java-code-compression.html)

Blah Blah 08-23-2003 06:32 PM

java code compression
 
i'm writing an applet which is growing a little out of control, and i'm
trying to cut down on the size of the final applet without reducing
functionality. is there a way to strip all excess symbols out of the applet
at compile time, or munge the internal names so that they're shorter?
coming from a C++ background, i have all of these nice, long explanatory
names for my constants - which end up taking an absurd amount of space.

any help would be appreciated!

daniel



Marko Lahma 08-23-2003 06:44 PM

Re: java code compression
 

You can use java byte (source) code obfuscator. They remove all
unnecessary code and obfuscate the variable names to short ones which
also make undestanding of decompiled code a bit harder. Sideproduct is
smaller byte code size.

for example see http://mindprod.com/jgloss/retroguard.html

Cheers,
Marko


Roedy Green 08-23-2003 07:09 PM

Re: java code compression
 
On Sat, 23 Aug 2003 14:32:42 -0400, "Blah Blah" <blah@blahblah.com>
wrote or quoted :

>i'm writing an applet which is growing a little out of control, and i'm
>trying to cut down on the size of the final applet without reducing
>functionality. is there a way to strip all excess symbols out of the applet
>at compile time, or munge the internal names so that they're shorter?
>coming from a C++ background, i have all of these nice, long explanatory
>names for my constants - which end up taking an absurd amount of space.


You can do obfuscation which will prune it somewhat.

see http://mindprod.com/jgloss/obfuscator.html


--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.

Blah Blah 08-23-2003 07:18 PM

Re: java code compression
 
thanks! i'll give this a shot.

"Marko Lahma" <marko@#NOSPAM#lahma.net> wrote in message
news:bi8clp$1r5$1@news.cc.tut.fi...
>
> You can use java byte (source) code obfuscator. They remove all
> unnecessary code and obfuscate the variable names to short ones which
> also make undestanding of decompiled code a bit harder. Sideproduct is
> smaller byte code size.
>
> for example see http://mindprod.com/jgloss/retroguard.html
>
> Cheers,
> Marko
>




Roedy Green 08-23-2003 07:29 PM

Re: java code compression
 
On Sat, 23 Aug 2003 14:32:42 -0400, "Blah Blah" <blah@blahblah.com>
wrote or quoted :

> cut down on the size of the final applet

make sure you put it in a jar, since that compresses the class files.

see http://mindprod.com/jgloss/jar.html

--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.


All times are GMT. The time now is 02:40 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57