Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Performance dilemma

Name: Anonymous 2010-04-24 15:49

I have an application written in Java which runs pretty slow. I was wondering if I remove all the spaces and line breaks (not to mention empty lines) will my app run faster?

Name: Anonymous 2010-04-24 16:28

>>1
No. Whitespace is removed in the compilation stage, long before your application is converted to Java bytecode. Removing spaces has no effect on the runtime of your program.

>>3
While method and package names do appear in Java .class files — and hence longer names will produce larger class files — any performance gain would be minimal. At most you'll save a few bytes of memory in the class file's constant pool.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List