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

Choose Arrays vs ArrayCache #28

Closed
cortner opened this issue May 8, 2023 · 3 comments
Closed

Choose Arrays vs ArrayCache #28

cortner opened this issue May 8, 2023 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@cortner
Copy link
Member

cortner commented May 8, 2023

Is it possible to write the _alloc interface in such a way that the user can define whether to use fresh Array allocations or reused CachedArrays? I'm thinking of something like

Polynomials4ML.use_cachedarrays!(true)  # or false  

and that this might trigger and eval into Polynomials4ML that determines which methods are called?

@cortner
Copy link
Member Author

cortner commented May 8, 2023

@tjjarvinen -- this is maybe a question for you?

@cortner cortner added the help wanted Extra attention is needed label May 8, 2023
@cortner
Copy link
Member Author

cortner commented May 10, 2023

Hm - maybe all this needs is a function

use_cached_arrays() = true

Which can be overwritten with false to switch to standard arrays.

@cortner
Copy link
Member Author

cortner commented Jun 19, 2024

this is made obsolete by #84 because we switched to Bumper

@cortner cortner closed this as completed Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant