-
Notifications
You must be signed in to change notification settings - Fork 5
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
high peak memory consumption of WaveletMatrix::from_ints #44
Comments
In v0.5.0, there is no approach to reduce the memory consumption. The large memory is due to that The large memory consumption is inconvenient, so we'll improve the implementation in v0.5.1. Thank you for the report! |
@hirosassa I'd like to do this. No problem? Or, have you already started coding? |
@kampersanda Not yet. Please go ahead! |
@KonradHoeffner #45 added an option to specify the minimum number of bits to store an input integer in wavelet matrix construction. From v0.6.0, you will be able to reduce memory consumption through |
Wow, thanks for the quick implementation! |
Tested it, works perfectly, thanks! |
Oops! As one of the primitive operations such as vec[i], I naturally defined it as Panicable; however it should return Result. I'll modified the API. Thank you for the meaningful question! |
Building a 205 MB wavelet matrix using WaveletMatrix::from_ints temporarily consumes 3.9 GB memory, which may be too much for small VMs.
Is there a way to reduce memory consumption while constructing a wavelet matrix?
The text was updated successfully, but these errors were encountered: