Re: Optimizations - pruning [J2ME; but I think a java programmer
can answer this question too]
erica.ramsey@gmail.com wrote:
Hello, programmers.
I read an article about optimizations and the article stated that one
should NOT put source into a package well that was easy enough to do.
That is crazy talk. J2ME is package-oriented just like the rest of Java.
However, it also went on to suggest that one should remove third party
libraries from their packages rather than just dump it into the
Now that's /really/ crazy talk. Crazy, crazy, crazy.
project. How do I do this?
Don't.
I am using "kXml2" parser and I can't see
> how to unjar it and remove it from it's [sic] package unless I get the
source code and do it manually. I did notice that when my source was
in a package Proguard automatically removed everything, but the midlet
class, from package but according to the article all elements of the
package need to be eliminated.
What is this article? It sounds like bovine fecal matter.
The reasoning behind this is that java generates a lot of overhead
when handling classes that are part of a package.
That doesn't sound reasonable either. AFAIK packages introduce no run-time
overhead.
Any suggests on how to remove 3rd party libraries from their packages?
Don't.
Warning: I am not a J2ME guy. However, even the briefest walk through Sun's
Tech Tips on J2ME, or any other explanatory material I've googled, shows the
use of packages. Packages are fundamental to Java, and eliminating them would
break much.
You really need to let us know what this article is and who wrote it so we
know never to trust this author.
--
Lew