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

Optimization: consolidating resources #13

Open
mtmccrea opened this issue Oct 17, 2017 · 0 comments
Open

Optimization: consolidating resources #13

mtmccrea opened this issue Oct 17, 2017 · 0 comments

Comments

@mtmccrea
Copy link
Member

When using the Hilbert, for e.g. HOA analysis, the current implementation would allocate numerous identical local buffers (HilbertH/W) and calculate identical coefficients (HilbertH).

Consider optimizations that could minimize the duplication of memory resources and calculations.

  • In the case of allocating buffers, this would likely be one layer up from the classes themselves, such as passing in external buffers. This would likely require modification of the current classes.
  • In the case of calculating coefficients, one approach is to use a class var to store a dictionary of coefficients for each kernel size, either on demand (built on first request, stored thereafter), or on *initClass for common kernel sizes, and on demand in the case of kernel sizes not pre-calculated.
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