-
Notifications
You must be signed in to change notification settings - Fork 151
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
Multi-dimension SArray is allocating huge memories at first time run #976
Comments
This is a known issue. Due to the way StaticArrays.jl is designed, it is preferable to use normal arrays when the total length is more than roughly 50 to 500. |
Got it! I did not take notice of note in README:
Will it be fixed in the future? |
I doubt it. I wouldn't expect any significant development to happen in StaticArrays.jl (only bug fixing and minor features) and this is a big issue. |
Sad to hear that. Closing issue... |
Results:
@time SMatrix{100,100}(c)
runs a long time, and the memory occupation can reach ~ 4GBTest environment:
The text was updated successfully, but these errors were encountered: