Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible performance improvement of TileSet class by serialization. #115

Open
HaitaoHuang-USDA opened this issue Oct 12, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@HaitaoHuang-USDA
Copy link
Collaborator

HaitaoHuang-USDA commented Oct 12, 2023

The object of opened tiles (from open_rasterio function) could be dumped to disk using pickle package.

The running times of loading pickled .pkl files are less than opening raster .bil files. The several tests on Ceres of running times for opening 1000 .bil files and loading 1000 .pkl files:

open 1000 bil files (s) load 1000 pkl files (s)
500. 2 25.1
193.3 12.8
213.98 4.8
152.5 1.3
207.8 13.9
138.3 1.8
225.6 11.2

The serialization should be done dynamically (if a pkl file for a tile can't be found, then create the pkl file) to avoid missing pkl issue after TileSet dataset updating.

Possible improvements we discussed:

  • chunks of xarray
  • VRT -- GDAL Virtual Format
@HaitaoHuang-USDA HaitaoHuang-USDA changed the title Performance improvement of TileSet class by serialization. Possible performance improvement of TileSet class by serialization. Oct 12, 2023
@HaitaoHuang-USDA HaitaoHuang-USDA added the enhancement New feature or request label Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant