Closed Bug 1878219 Opened 3 months ago Closed 2 months ago

Move core Categorization Map into a worker

Categories

(Firefox :: Search, task, P2)

task

Tracking

()

RESOLVED FIXED
125 Branch
Tracking Status
firefox125 --- fixed

People

(Reporter: jteow, Assigned: jteow)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sng])

Attachments

(1 file, 1 obsolete file)

As we get closer to posting the category mappings, one concern is if there's a conflict between the initial startup loading the attachments and a test event forcing a sync.

To avoid work that could get overwritten anyway, we should bail in clearAndPopulateMap where it seems fitting.

Summary: Add bailouts if there is are reason to stop the current download process → Add bailouts if there are reasons to stop populating the domain to categories map

The concern about bailouts was about testing interfering with downloading content from RS, but since tests don't pull from the real RS this shouldn't be a concern.

I've been testing running the mappings from stage - preview and I am wondering if the impact to startup especially on the main thread is acceptable or if we should look to move some of this to a Worker and storing the information there.

This might make querying the map async, but unlike other consumers who have large storage requirements like Urlbar and are user facing, we don't require near instant responses.

Summary: Add bailouts if there are reasons to stop populating the domain to categories map → Refactor the storage of the domain to categories mappings
Attachment #9377853 - Attachment is obsolete: true
No longer blocks: 1878394
Summary: Refactor the storage of the domain to categories mappings → Move core Categorization Map into a worker
Pushed by jteow@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/904f2cb23332
Move the core Categorization Map into a worker - r=scunnane
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: