posted 18 years ago
Hi
I was wondering if performance is better when you have several smaller files as oppose to one large file.
Basically my chess engine Engine.java, is currently a huge a file, with many methods and instance variables.
My mate said it was better to split it so that the entire program isn't stored in RAM, when only parts of it are needed at certain times.
Is this true? It would however help in coding to have it packaged nicely instead of having to scroll up and down the same class to find something.
Also, since I am calling many methods per second, would it make any performance difference to say call a method from the same class, eg ABC(), than to call it from an object, eg. someObject.ABC() ?
Thanks for any advice.