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

Memory usage of scipy.io.readsav() #14097

Open
ejhyer opened this issue May 20, 2021 · 1 comment
Open

Memory usage of scipy.io.readsav() #14097

ejhyer opened this issue May 20, 2021 · 1 comment
Labels

Comments

@ejhyer
Copy link

ejhyer commented May 20, 2021

Memory usage by readsav() is problematic, and may also be slowing it down. Example:
7MB IDL SAVE file:

hyer aerosol_users 6860436 May 18 21:31 test.idldat 

Attempt to read file, including time and memory profiling:

%%time
%memit qq=readsav('test.idldat',python_dict=True)
# same result with python_dict=False

profiling result indicating VERY slow and VERY memory-intensive:

peak memory: 267.28 MiB, increment: 69.73 MiB
CPU times: user 35.2 s, sys: 525 ms, total: 35.7 s
Wall time: 35.6 s

Version info:

import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info)
1.5.2 1.19.2 sys.version_info(major=3, minor=6, micro=13, releaselevel='final', serial=0)
@rgommers
Copy link
Member

@ejhyer any chance you can provide a reproducer? This cannot easily be investigated like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants