ranchgirl
版主
发贴: 801
积分: 132
|
于 2005-10-05 22:06
Does using of obfuscator slow the running of Java program?
The answer is NO.
On the opposite, in many cases, good obfuscator will speed-up the Running of Java Program by optimizing calling stacks, reducing method calls, reducing constants, as well as reducing byte code sizes.
Almost all mobile games are using obfuscators. No mobile games found slowing down. As we all know, speed is very critical in games.
Actually, all mobile games are speeded up by obfuscators by saving precious resources on mobile devices.
From my working knowledge of obfuscator, there is no reason, obfuscator, even the not-the-best obfuscators, will slow down the Running of Java Program.
Good obfuscator is not only protecting your source code, reducing your jar size, but also speed-up your Java program.
When and where I should or should not use an obfuscator?
1) Where your code is using reflection or introspection, such as your set/get methods in your JavaBeans. Or Class.forName() etc. Most available obfuscators have a way to configure that, let you exclude classes or methods.
2) Overly complicated Java programs, there is no need to obfuscate, since reverse engineering is almost useless or worthless for hackers. Program with top/state secrets would be exceptions.
Do I need to be careful when I use obfuscator?
1) All software is bug-free until you find one! 2) Obfuscator is software written by human beings. There are no exceptions, there might be bugs. 3) Test your software heavily and throughly, please!
Which obfuscator should I use? I have used Progard and Retroguard. I think Proguard is very good. Do you own research and comparison, and choose the right one for you or your company.
Where do I find Proguard? Google.com Hehe
How to use an obfuscator? RTFM! ======================= P.S. Why do I put on this topic?
It might not be a common misunderstanding. However, at least, somebody in CJSDN thinks the wrong way. The thread was deleted this evening (10-05-2005 19:00-20:00 Beijing standard time) from 灌水乐园 forum for some unknown reasons.
Put here might benefit some other members, I think.
gongshi edited on 2005-10-06 00:05
|