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

Pages: 1-

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 15:53

Java
Now you have TWO problems!!!

Name: Anonymous 2010-04-24 16:00

>>1
I'd also recommend shortening all your variable and function names as much as possible, preferably using single letters. This might seem a little harsh (as you can't describe the behaviour of a function in its name), but the performance gain is worth it.

Name: Anonymous 2010-04-24 16:06

>>1
dont do it! you cannot sacriface readability and proper programming practices for performence. that way sun wins and you lose.
oh wait you allready lost and sun lost and everybody lost and IHBT.

Name: Anonymous 2010-04-24 16:13

>>1
Hello, Frozenvoid

Name: Anonymous 2010-04-24 16:20

>>3

Thank you, I've started to do this. Thank God for the refactoring features in Eclipse. Makes it much easier.

Name: Anonymous 2010-04-24 16:20

>>5
Hello, `Anonymous'.

Name: Anonymous 2010-04-24 16:21

>>7

Hello, Dexter Morgan.

Name: Anonymous 2010-04-24 16:22

non-YHBT answer:
Are you making proper use of the JIT? Make sure you're using the server version instead of the client one. Did you profile your application to look for bottlenecks?

Name: Anonymous 2010-04-24 16:23

>>1
Fucking /prog/ get out of my ENTERPRISE... oh wa--

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.

Name: Anonymous 2010-04-24 16:47

Hey guys remember when you could speed up your interpreted BASIC programs by using ? instead of PRINT etc?

Name: Anonymous 2010-04-24 17:08

>>9
Why are there two versions of the JVM in the fist place? All benchmarks show the server one is much faster, and I can<

Name: Anonymous 2010-04-24 17:26

>>13
It uses hundreds of megabytes of RAM.
Kind of like LISP.

Name: Anonymous 2010-04-24 17:28

>>14
It uses hundreds of megabytes of RAM.
That can be said about anything Java-related,

Name: Anonymous 2010-04-24 20:22

That can be said about anything Java-related, so it's a poor argument.
That can be said about anything C-related, so it's a poor argument.

Name: Anonymous 2010-04-25 0:31

That can be said about anything C-related, so it's a poor argument.

That can be said about anything Haskell-related, so it's a poor argument.

Name: Anonymous 2010-04-25 2:42

That can be said about anything Haskell-related, so it's a poor argument.
That can be said about anything Java-related, so it's a poor argument.

Name: Anonymous 2010-04-25 2:53

>>11
YHBT violently

Name: Anonymous 2010-04-25 3:18

That can be said about anything Java-related, so it's a poor argument.

That can be said about anything anus-related, so it's a poor argument.

Name: Anonymous 2010-04-25 10:17

That can be said about anything anus-related, so it's a poor argument.
That can be said about anything dick-related, so it's a poor argument.

Name: Anonymous 2011-01-31 21:02

<-- check em dubz

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