I have folder with two million of images 1-2KB. I try to read
for (File f : tmpDir.listFiles()) {
long t1 = System.currentTimeMillis();
image = ImageIO.read(f);
long time = System.currentTimeMillis() - t1;
}
first 20,000 files time = 0 or time = 1;
then time of reading increased up to 50-100 mls. (time = 50-1000)
How to improve performance?