So I have a 20 GB in size Raster Image in .img format. Though I will be examining the code, to find out why, I am AMAZED at how quickly QGIS renders the entire file in a scaled format, and prior to writing code I was wondering if anyone knows what other format that offers actual compression (this .img file I am using has an .ige component the docs say immediately turns off compression) but also has that pick and choose functionality I believe QGIS is using.
I believe based on what I'm seeing that the file is going to be heavily indexed inside, which allows the file pointer to skip around ALOT, whereas a PNG file is likely to be compressed row by row and this would probably require a person to decompress and load pretty much all the data to then scale the image and render it.
I don't want to give up the performance I am seeing in QGIS, but I'm uncertain how to proceed.
Does anyone know a better more compressed format that offers the same kind of fast scaling functionality?
Edit https://pastebin.com/bvbEcVtd
Here are the results of my tests on the Tree Canopy raster. This actually does create some precedent for finishing my next test, the access test. Assuming the good good people who are slowly ending our world don't cut time to finish the smallest thing short.
The somewhat scary thing is the difference between memory copy from GDAL in squares of 512 (which is native in this raster) to a Bitmap vs the time it takes to compress and save the PNG.
I will add access speed statistics as well.
Edit: So any evidence based answers that compliment the above experimentation I listed ? I didn't get around to the access tests yet, too busy being bugged by the repeat end of the world.