opengribs / XyGrib

This is the new home for the development of zyGrib
https://opengribs.org
GNU General Public License v3.0
119 stars 46 forks source link

Don't try to read bz2 file as grib2 it's too slow #265

Closed did-g closed 3 years ago

did-g commented 3 years ago

Hi,

Temporary workaround for slow bz2 compressed grib1 file.

Bzip2 backward seek is very slow because it has to re-open the file and decompress it again from the start. Our grib2 decoder seek backward...

A proper solution would be to not seek backward, we already decompressed file twice , first in Terrain::loadMeteoDataFile and it the decoder so it shouldn't be too hard.

Regards Didier

norulz commented 3 years ago

Thanks Didier