-
Notifications
You must be signed in to change notification settings - Fork 2
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
Unit tests are slow #68
Comments
Is it possible to get the test data created in ram instead of on disk? |
It seems like it should be possible. One possibility (?):
Edit: Although the part I haven't figured out with this: how to pass the 'file' to |
There's this package https://pypi.org/project/memory-tempfile/, which might allow doing file I/O on a RAM-disk (on Linux, seems to be possible to provide a fall-back to disk-based I/O for other OSes). |
For me they are even slower: I got it to run faster locally on my laptop, having it all on a ram disk, there it finished in 10 hours. But that might be due to some failures and not finishing:
This is on Fedora rawhide, on fedora 38 they are still "fast" and finish within a reasonable time frame ... |
Removing |
Is that there as a workaround for xarray's aggressive caching? |
boutdata should not be using xarray? I think it was put there as a (premature?) optimisation to minimise memory usage ... Coming back to the original thread, I doubt moving IO to a ramdisk or similar does help, we spend 30 minutes in userspace, and only 1 minute in sys:
|
#101 helps with this, but it is still slow, in part due to having dozens of tests, where a few should probably do the job ... |
The unit tests take about 30 minutes to complete, mostly it's
collect
. Maybe we can mock out the netcdf calls to something much faster?The text was updated successfully, but these errors were encountered: