Unverified Commit 4b239e45 authored by vercel-fleet-prod[bot]'s avatar vercel-fleet-prod[bot] Committed by GitHub

perf(turbo-tasks): coalesce active count updates

Co-authored-by: 's avatarJimmy Miller <6071338+jimmyhmiller@users.noreply.github.com>
parent 5b8c866c
......@@ -145,18 +145,6 @@ impl ActivenessState {
self.active_until_clean = true;
}
/// Increment the active counter and return true if the counter was 0 before.
pub fn increment_active_counter(&mut self) -> bool {
self.active_counter += 1;
self.active_counter == 1
}
/// Decrement the active counter and return true if the counter is 0 after.
pub fn decrement_active_counter(&mut self) -> bool {
self.active_counter -= 1;
self.active_counter == 0
}
pub fn unset_root_type(&mut self) {
self.root_ty = None;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment