Performance or size ? How to speeding-up the applet?
Hi All,
Can I read from somewhere about how should I make the applet so I can speed it up, and make better by performance and size(memory).
For example what is the difference between:
==================================
private byte[] itemsMenu ={ (byte)'.',(byte)'.',(byte)'.',(byte)'.',(byte)'.', (byte)'.', (byte)'.', (byte)'.', (byte)'.', (byte)'.',
(byte)'.',(byte)'.',(byte)'.',(byte)'.',(byte)'.', (byte)'.', (byte)'.', (byte)'.', (byte)'.', (byte)'.',
(byte)'.',(byte)'.',(byte)'.',(byte)'.',(byte)'.', (byte)'.', (byte)'.', (byte)'.', (byte)'.', (byte)'.',
(byte)'.',(byte)'.',(byte)'.',(byte)'.',(byte)'.', (byte)'.', (byte)'.', (byte)'.', (byte)'.', (byte)'.',
(byte)'.',(byte)'.',(byte)'.',(byte)'.',(byte)'.', (byte)'.', (byte)'.', (byte)'.', (byte)'.', (byte)'.',
(byte)'.',(byte)'.',(byte)'.',(byte)'.',(byte)'.', (byte)'.', (byte)'.', (byte)'.', (byte)'.', (byte)'.',
(byte)'.',(byte)'.',(byte)'.',(byte)'.',(byte)'.', (byte)'.', (byte)'.', (byte)'.', (byte)'.', (byte)'.',
(byte)'.',(byte)'.',(byte)'.',(byte)'.',(byte)'.', (byte)'.', (byte)'.', (byte)'.', (byte)'.', (byte)'.',
(byte)'.',(byte)'.',(byte)'.',(byte)'.',(byte)'.', (byte)'.', (byte)'.', (byte)'.', (byte)'.', (byte)'.'
};
================== AND ==================================
private byte[] itemsMenu = new byte[90];
for (sI = 0;sI<90;sI++) { itemsMenu[sI] = (byte)'.';
==================================
What I will lose and what I will gain if I use one and another.... memory speed..... and some tips and tricks like this !
Thanks in advice.
Regards,
Zoroto

