Bug 304376
| Summary: | Use more efficient network traffic attribution API | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ben Nham <nham> |
| Component: | WebKit Misc. | Assignee: | Ben Nham <nham> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | commit-queue, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | 304424 | ||
| Bug Blocks: | |||
Ben Nham
In 293525@main we changed prefetched DNS resolution to use nw_parameters_set_source_application_by_bundle_id_internal to attribute the DNS request to the host application. It turns out that this is a pretty inefficient API (it blocks on a sync XPC message for ~10 ms which then goes and enumerates all apps by bundle ID on the system). Fix this by using nw_parameters_set_source_application instead, which doesn't seem to suffer from the same issue.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/166751326>
Ben Nham
Pull request: https://github.com/WebKit/WebKit/pull/55601
EWS
Committed 304682@main (734443e9bf87): <https://commits.webkit.org/304682@main>
Reviewed commits have been landed. Closing PR #55601 and removing active labels.
WebKit Commit Bot
Re-opened since this is blocked by bug 304424
Ben Nham
Pull request: https://github.com/WebKit/WebKit/pull/55723
EWS
Committed 304780@main (9f34c252266c): <https://commits.webkit.org/304780@main>
Reviewed commits have been landed. Closing PR #55723 and removing active labels.