Closed Bug 1526542 Opened 10 months ago Closed 9 months ago

Improve the efficiency of CreatePermissionKey()

Categories

(Core :: Privacy: Anti-Tracking, enhancement)

enhancement
Not set

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: ehsan, Assigned: ehsan)

References

Details

Attachments

(1 file)

There are two changes being made here:

  • In call sites where we know both origin arguments are equal,
    we will call a specialized version of the function which
    avoids the origin equality check.
  • We avoid calling into the generic printf structure and build
    the result string manually.
Blocks: 1516540

There are two changes being made here:

  • In call sites where we know both origin arguments are equal,
    we will call a specialized version of the function which
    avoids the origin equality check.
  • We avoid calling into the generic printf structure and build
    the result string manually.
Pushed by eakhgari@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f40bd9a6c21d
Improve the efficiency of CreatePermissionKey(); r=baku
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
Pushed by eakhgari@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/cbbdfdbbe0ab
follow-up: Address froydnj's review comment by adding the length of aGrantedOrigin to the capacity consideration of aPermissionKey as well
You need to log in before you can comment on or make changes to this bug.