issues: 1309500528
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1309500528 | I_kwDOAMm_X85ODWRw | 6809 | Checking whether there is a chunk_store passed iterates over all files | 6052881 | open | 0 | 2 | 2022-07-19T13:10:49Z | 2022-09-12T18:45:09Z | NONE | What is your issue?Investigating the performance of our service, I came across the following code: We are storing our zarr arrays in S3 using fsspec to wrap the client. Since our chunk_store object is a FSMap (https://github.com/fsspec/filesystem_spec/blob/dcff551ed789f0cea4a5ca5a8eed208bc1d0fdc5/fsspec/mapping.py#L7) which lists the files in the chunk_store if the
Which happens when the chunk_store (FSMap) is checked like:
Would it be the same if the following check would be done instead?
Or is there a reason not to only check whether the object is not None but that is not empty? Would be good to avoid extra calls to the S3 bucket if they are not really required. |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/6809/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | issue |