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

Performance issue on resize #32

Open
schaumb opened this issue Aug 13, 2022 · 0 comments
Open

Performance issue on resize #32

schaumb opened this issue Aug 13, 2022 · 0 comments

Comments

@schaumb
Copy link

schaumb commented Aug 13, 2022

When I use boost::multi_array with boost::fortran_storage_order(), and I want to .resize by only the latest (rightmost) dimension, the current implementation is a nested N function call (std::copy), one by dimension.
The same functionality can be reached with one std::copy on the storage.

This minimal example shows the problem:
https://godbolt.org/z/GWbxcM14h

@schaumb schaumb changed the title Performance issue Performance issue on resize Aug 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant