Closed Bug 1202667 Opened 6 years ago Closed 6 years ago
micro-optimize refcounting in Task
This is micro-optimizing, but it feels worthwhile, because the refcounting here on runnables is thread-safe, and avoiding atomic operations seems like a good idea.
We're already holding a reference to the Runner prior to dispatching it to the thread pool; we can pass that reference in rather than requiring the thread pool to take a new reference to it.
Attachment #8658174 - Flags: review?(continuation)
Attachment #8658174 - Flags: review?(continuation) → review+
Attachment #8658175 - Flags: review?(continuation) → review+
I CC'ed Olli because he likes refcounting microoptimizations. ;)
You need to log in before you can comment on or make changes to this bug.