Skip to content

Why is loading data from a file so slow? #5103

Answered by trexfeathers
krikru asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @krikru, thanks for your patience.

I've finally had time to try replicating your observations, like you suggested.

I won't think any more about whether Xarray is loading lazily or not: in my script your observations hold true with both lazy AND eager loading.

The implementation of lazy loading is complex, so it is inevitable that Xarray and Iris have made different choices about how to do this. @pp-mo and I have spent an hour trying different things but have not isolated the cause of the performance difference, however I'm not especially surprised:

  • Iris' implementation is simpler / less sophisticated
  • Xarray has a larger contributer community and improves at a faster rate
  • Some of Xarra…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@trexfeathers
Comment options

@krikru
Comment options

@krikru
Comment options

@trexfeathers
Comment options

Answer selected by krikru
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants