-
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
feat: track memoization stats #51
Conversation
🦙 MegaLinter status: ✅ SUCCESS
See detailed report in MegaLinter reports |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #51 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 9 10 +1
Lines 436 499 +63
=========================================
+ Hits 436 499 +63 ☔ View full report in Codecov by Sentry. |
docs: add docstrings
docs: fix documentation style: replace print with logging
… try expression style: remove f-strings from logging statements
fix: correct order of memoization memory usage calculation
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
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)
I would propose to merge the tracking of stats (this PR) first and continue the strategies for memoizing and removing in a follow-up PR. |
…nner into memoization-expansion # Conflicts: # src/safeds_runner/server/memoization_map.py
test: update memory usage test to relative comparison, as the size is not constant across python versions
I'm all for that. |
feat: track multiple stats per function instead of replacing them test: import directly, if possible
…nner into memoization-expansion # Conflicts: # src/safeds_runner/server/memoization_map.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've made some changes that were easier to implement directly than to describe them.
@WinPlay02 Please take a quick look whether I broke anything and then feel free to merge if you're happy with it (or complain if you are not).
9ed137a
to
b501fce
Compare
This should be good to go |
🎉 This PR is included in version 0.6.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Closes partially #44
Summary of Changes