-
Notifications
You must be signed in to change notification settings - Fork 521
Simplify {session_,}result_with_timings types #1126
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
Conversation
@@ -542,6 +542,7 @@ impl<S: SpawnableScheduler<TH>, TH: TaskHandler> ThreadManager<S, TH> { | |||
(result, timings): &mut ResultWithTimings, | |||
executed_task: Box<ExecutedTask>, | |||
) { | |||
timings.accumulate(&executed_task.result_with_timings.1); |
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.
okay, I'm now very selective for piggybacking minor cleanups.... xD
result_with_timings | ||
.take() | ||
.unwrap_or_else(initialized_result_with_timings), | ||
.send(std::mem::replace( |
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.
hint: this is the sole sender.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1126 +/- ##
=======================================
Coverage 82.2% 82.2%
=======================================
Files 880 880
Lines 235623 235617 -6
=======================================
+ Hits 193699 193731 +32
+ Misses 41924 41886 -38 |
); | ||
} else { | ||
unreachable!(); | ||
match new_task_receiver.recv() { |
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.
changed to match for later pr..
Problem
After rethinking about simpler unified scheduler impl, it turned out some types are needlessly complex, which were introduced at solana-labs#34676.
Summary of Changes
Simplify them in preparation of chunked finished prs from the wip all-in-one pr: #1122
There should be no functional changes. and changes should be statically proven to be safe by human...