-
Notifications
You must be signed in to change notification settings - Fork 0
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
Improved memoization logic #44
Labels
Comments
WinPlay02
added a commit
to WinPlay02/Library
that referenced
this issue
Feb 5, 2024
This is needed to correctly evaluate whether an object is worth memoizing or keeping in the cache. See for context: Safe-DS/Runner#51 and Safe-DS/Runner#44
lars-reimann
pushed a commit
to Safe-DS/Library
that referenced
this issue
Feb 5, 2024
Summary: - feat: return the correct size for custom container objects This is needed to correctly evaluate whether an object is worth memoizing or keeping in the cache. See for context: Safe-DS/Runner#51 and Safe-DS/Runner#44 For future container classes (like e.g. image set this would also need to be added, to be compatible with the memoizing implementation in the runner)
lars-reimann
added a commit
that referenced
this issue
Feb 6, 2024
Closes partially #44 ### Summary of Changes - track more stats: last access, computation time, last access time, memory usage - refactored memoization logic into a new class - updated to safe-ds library 0.19 --------- Co-authored-by: megalinter-bot <[email protected]> Co-authored-by: Lars Reimann <[email protected]>
lars-reimann
pushed a commit
that referenced
this issue
Apr 16, 2024
### Summary of Changes - shared memory - lazy comparisons - limited memory - value removal strategies - use deterministic seed for hashing Closes #44 Depends on Safe-DS/Library#609 --------- Co-authored-by: megalinter-bot <[email protected]>
lars-reimann
pushed a commit
that referenced
this issue
Apr 17, 2024
🎉 This issue has been resolved in version 0.11.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem?
It makes no sense to cache large values that are fast to compute. Likewise, once we need to clear memoized values to free space, we need to decide which values to remove.
Desired solution
When memoizing, also track
Then evaluate different strategies for
Possible alternatives (optional)
No response
Screenshots (optional)
No response
Additional Context (optional)
No response
The text was updated successfully, but these errors were encountered: