I am trying to load many small images. This takes much longer time than loading only one big image whose size is equal to the total size of all small images. Is it because of many memory allocations take place ? or access time ? or anything else ?
Testing on MIDP 1.0, N-Gage.
In Java (and, to some extent, in any other environment), doing many small things will take longer than one big one.
If many small images is a problem, have one big image instead (or several not-so-small ones). This will also help to optimize your JAR size.
OK. I am using one big dat file instead of many small files. As you have mentioned, it helps both loading performance and JAR size.