title: How to speed up loading/setting tile - OSMDROID
body: <p>I am creating and setting a new tiles starting from a grib data, but the application is very slow:</p>
  
  <pre><code>try {
              gribFileTileSource.setRecord(1);
              for (int j=0;j&lt;tileSize;j++) {
                  lat=minLat+j*dLat;
                  for (int i=0;i&lt;tileSize;i++) {
                      lon=minLon+i*dLon;
                      //Log.d(LOG_TAG,"lon:"+lon+" lat:"+lat);
                      u=gribFileTileSource.getValue(lat,lon);
                      color=gribFileTileSource.getColor(u);
                      bitmap.setPixel(i,tileSize-j-1,color);
                  }
              }
  </code></pre>
  
  <p>How to make this code faster ?</p>