-
Notifications
You must be signed in to change notification settings - Fork 49
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
complete refactoring of Grid class #2765
Labels
Comments
Well, in the proposed refactoring work, one should also move all the function implementations to the .cpp file, instead of leaving them in the .h file. That's because:
|
Merged
clyne
added a commit
that referenced
this issue
Jul 6, 2021
…dims to match new API, which results in a ~10% improvement in performance.
clyne
added a commit
that referenced
this issue
Jul 7, 2021
…2775) * Partially addresses #2765. Changes internal representation of Grid::_dims to match new API, which results in a ~10% improvement in performance. * clang-format pre-push hook * Fixed regression in last commit * Update lib/vdc/Grid.cpp Co-authored-by: Samuel Li <shaomeng@users.noreply.github.com> * clang-format Co-authored-by: Samuel Li <shaomeng@users.noreply.github.com>
This has nearly been completed as of 3.6. I think we should defer further action until we have a more extensive testing framework, enabled by the upcoming Python API |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Grid class needs some minor refactoring to complete the conversion from the use of std::vector to std::array for the representation of fixed-size, arrays of length 3. In particular, a number of public getters on the grid class still return std::vector instead of std::array. This results in unnecessary, and sometimes expensive, conversions between the types.
The text was updated successfully, but these errors were encountered: