×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    39

    image loading latency

    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.

    MB

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395
    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.

    Graham.

  3. #3
    Registered User
    Join Date
    Apr 2005
    Posts
    39
    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.

    Thanks...

    Mete

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×