Closed Bug 1832542 Opened 2 years ago Closed 2 years ago

Cache anchor/data attribute in inspectAnchors

Categories

(Firefox :: Search, task, P1)

task

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: jteow, Assigned: jteow)

References

Details

Attachments

(1 file)

Using the profiler on a slower machine, I've found #shouldInspectAnchor to be a notable bottleneck.

What might help is to cache the href and data attribute property instead of constantly querying the attributes.

Blocks: 1816734
Assignee: nobody → jteow
Status: NEW → ASSIGNED
Pushed by jteow@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/986ad09d2849 Cache anchor and data-attribute value - r=scunnane
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: