Closed Bug 1383245 Opened 7 years ago Closed 7 years ago

Prevent repeatedly computing the hash of a NodeInfoInner object

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

Details

Attachments

(1 file)

In practice we never modify the name and atom after setting
them, so we make them const here, and compute the hash once
if needed lazily.
Attachment #8888905 - Flags: review?(bugs) → review+
Pushed by eakhgari@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/2ba59555d529
Prevent repeatedly computing the hash of a NodeInfoInner object; r=smaug
https://hg.mozilla.org/mozilla-central/rev/2ba59555d529
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
Assignee: nobody → ehsan
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: