Bug 302392
| Summary: | [GLIB] Skip run loop observer notifications earlier for activities with no observers registered | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Carlos Garcia Campos <cgarcia> |
| Component: | Web Template Framework | Assignee: | Carlos Garcia Campos <cgarcia> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | bugs-noreply, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Carlos Garcia Campos
We currently don't use Activity::AfterWaiting but on every run loop iteration we iterate the observers again after waiting for sources to check if there's any to notify. We could keep a count of observers registered for every activity and early return from RunLoop::notifyActivity when the given activity doesn't have observers registered.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Carlos Garcia Campos
Pull request: https://github.com/WebKit/WebKit/pull/53803
EWS
Committed 303110@main (098750050ead): <https://commits.webkit.org/303110@main>
Reviewed commits have been landed. Closing PR #53803 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/164870068>