-
Notifications
You must be signed in to change notification settings - Fork 248
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
chore: tests for Lazy and moving out of unstable #1268
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1268 +/- ##
==========================================
+ Coverage 80.01% 80.12% +0.11%
==========================================
Files 102 106 +4
Lines 14598 14860 +262
==========================================
+ Hits 11680 11907 +227
- Misses 2918 2953 +35 ☔ View full report in Codecov by Sentry. |
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.
Looks good. For some reason, I expected better performance. E.g. LookupSet which has ~1020 inserts compared to LazyOption with ~1200
@race-of-sloths score 8 |
@akorchyn Thank you for calling! @ruseinov Thank you for the contribution! Join Race of Sloths by simply mentioning me in your comment/PRs description and start collecting Sloth Points through contributions to open source projects. What is the Race of SlothsRace of Sloths is a friendly competition where you can participate in challenges and compete with other open-source contributors within your normal workflow For contributors:
For maintainers:
Feel free to check our website for additional details! Bot commands
|
@akorchyn comments addressed! |
Well, if it has to write on each insert to the storage (via flush) - it makes sense. |
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.
Small nit that you may skip. Awesome
@@ -49,6 +58,19 @@ impl LazyContract { | |||
} | |||
} | |||
|
|||
/// This should write twice on each iteration. | |||
#[payable] | |||
pub fn insert_take_flush(&mut self, iterations: u32) { |
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 would name it insert_take
to be consistent with insert_delete
.
As I got confused initially that it is same as insert_delete_flush_once
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.
will do
I'll need to tune the iterations for the CI, then we are done.. It's a bit of a process, I'll poke you when green. |
work on #1199