Open Bug 1933562 Opened 1 year ago Updated 1 month ago

Defer url classification action until socket thread

Categories

(Core :: Networking, enhancement, P2)

enhancement

Tracking

()

ASSIGNED

People

(Reporter: edgul, Assigned: jesup, NeedInfo)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

Attachments

(14 files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

Placeholder

Severity: -- → N/A
Priority: -- → P2
Whiteboard: [necko-triaged]
Assignee: nobody → edgul
Summary: Defer classification action until socket thread → Defer url classification action until socket thread
Attachment #9440131 - Attachment description: WIP: Bug 1933562: cache_markers → WIP: Bug 1933562: cache markers
Attachment #9440132 - Attachment description: WIP: Bug 1933562: async_classifier → WIP: Bug 1933562: async classifier
Attachment #9440133 - Attachment description: WIP: Bug 1933562: cookieBehavior check → WIP: Bug 1933562: cookieBehavior
Attachment #9440134 - Attachment description: WIP: Bug 1933562: add pref → WIP: Bug 1933562: add_pref

This patch is showing possible improvements of ~50ms on two devices in the Fenix newssite applink tests
https://perf.compare/compare-results?baseRev=7a9453665580261402920c820181ce981133f573&newRev=278b12a45e704df43cd988cdc72738bc7351e0d6&baseRepo=try&newRepo=try&framework=15

Note: we will have to re-test as a handful of the results are not valid due to bug 1979663

Attachment #9497260 - Attachment is obsolete: true
Attachment #9496323 - Attachment is obsolete: true
Attachment #9496323 - Attachment is obsolete: false
Attachment #9497260 - Attachment is obsolete: false
See Also: → 1984478
Assignee: edgul → nobody

While this approach improves performance (specifically applink startup), Randell discovered significant technical complexity around cookies and other areas.
He proposed that a simpler solution may deliver most of the results: cache the results of url classification so that we only pay the price for the first url, captured in bug 1984478

See Also: → 1965398
See Also: 1965398
Assignee: nobody → rjesup
Status: NEW → ASSIGNED

The following patch is waiting for review from an inactive reviewer:

ID Title Author Reviewer Status
D299564 Bug 1933562: cache full classification results and replay match hits on main thread r=#necko-reviewers!,timhuang! jesup timhuang: Back Jul 23, 2026

:jesup, could you please find another reviewer?

For more information, please visit BugBot documentation.

Flags: needinfo?(rjesup)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: