home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1366807012

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/7404#issuecomment-1366807012 https://api.github.com/repos/pydata/xarray/issues/7404 1366807012 IC_kwDOAMm_X85Rd9Hk 60647051 2022-12-28T17:21:28Z 2022-12-28T17:21:28Z NONE

It still shows similar memory consumption. ```bash Start: 185.6015625 MiB Before opening file: 186.24609375 MiB After opening file: 307.1328125 MiB Filename: temp.py

Line # Mem usage Increment Occurrences Line Contents

 7    186.0 MiB    186.0 MiB           1   @profile
 8                                         def main():
 9    186.0 MiB      0.0 MiB           1       path = 'ECMWF_ERA-40_subset.nc'
10    186.0 MiB      0.0 MiB           1       gc.collect()
11    186.2 MiB      0.2 MiB           1       print(f"Before opening file: {psutil.Process(os.getpid()).memory_info().rss / 1024 ** 2} MiB")
12    307.1 MiB    120.9 MiB           1       ds = xr.open_dataset(path)
13    307.1 MiB      0.0 MiB           1       del ds
14    307.1 MiB      0.0 MiB           1       gc.collect()
15    307.1 MiB      0.0 MiB           1       print(f"After opening file: {psutil.Process(os.getpid()).memory_info().rss / 1024 ** 2} MiB")

End: 307.1328125 MiB ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  1512460818
Powered by Datasette · Queries took 0.709ms · About: xarray-datasette