Closed
Bug 1617205
Opened 4 years ago
Closed 4 years ago
When initializing the permission manager, we spend too much time getting the origin out of the principal which we just created out of the origin
Categories
(Core :: Permission Manager, enhancement)
Core
Permission Manager
Tracking
()
RESOLVED
FIXED
mozilla75
Tracking | Status | |
---|---|---|
firefox75 | --- | fixed |
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
Details
Attachments
(2 files)
When initializing the permission manager, we read origins as strings, create principals out of them and then try to get the origin string out of the principals again. This is wasteful. It takes about 10% of a startup profile (see the perf profile in the screenshot).
Assignee | ||
Comment 1•4 years ago
|
||
Updated•4 years ago
|
Assignee: nobody → ehsan
Status: NEW → ASSIGNED
Pushed by eakhgari@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2a7cb2d7412d In nsPermissionManager::AddInternal(), only compute the origin string when it is needed, and when the caller doesn't have it available; r=baku
Comment 3•4 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox75:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla75
You need to log in
before you can comment on or make changes to this bug.
Description
•