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

Memoisize stats function #43

Open
NeuroShepherd opened this issue Jul 1, 2023 · 2 comments
Open

Memoisize stats function #43

NeuroShepherd opened this issue Jul 1, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@NeuroShepherd
Copy link
Owner

Inputs are likely to be repeated many times over either in a Shiny session or when using the function directly. For performance improvement, consider using {memoise}

@NeuroShepherd NeuroShepherd added the enhancement New feature or request label Jul 1, 2023
@NeuroShepherd
Copy link
Owner Author

Unclear if {memoise} can cache across parallel sessions, but {R.cache} apparently is capable of this.

@NeuroShepherd
Copy link
Owner Author

As an additional comparison note between {memoise} and {R.cache}:

  • The former caches data in-memory in the current session which is faster to write to and access, but can clog up the session if there's too much happening. Additionally, the results are stored only transiently.
  • R.cache caches the data to a file outside of the session. There is a higher overhead to writing and reading this data, but allows access across multiple sessions and in parallel processes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant