Closed
Bug 1370700
Opened 9 years ago
Closed 9 years ago
nsDOMAttributeMap does unnecessary hashtable lookups
Categories
(Core :: DOM: Core & HTML, enhancement)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla55
| Tracking | Status | |
|---|---|---|
| firefox55 | --- | fixed |
People
(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)
References
Details
(Keywords: perf)
Attachments
(2 files)
|
1.19 KB,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
|
1.25 KB,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8875344 -
Flags: review?(nfroyd)
| Assignee | ||
Comment 2•9 years ago
|
||
FYI, bz said in bug 1370632 comment 6:
>mAttributeCache can't contain null values.
Attachment #8875345 -
Flags: review?(nfroyd)
| Assignee | ||
Comment 3•9 years ago
|
||
Comment 4•9 years ago
|
||
Comment on attachment 8875345 [details] [diff] [review]
part 2 - Use mAttributeCache.GetOrInsert() to avoid a second hashtable lookup for Put()
Review of attachment 8875345 [details] [diff] [review]:
-----------------------------------------------------------------
I will trust bz's guidance on this one. ;)
Attachment #8875345 -
Flags: review?(nfroyd) → review+
Updated•9 years ago
|
Attachment #8875344 -
Flags: review?(nfroyd) → review+
Pushed by mpalmgren@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/883902e4d999
part 1 - Use mAttributeCache.LookupRemoveIf() to avoid a second hashtable lookup for Remove(). r=froydnj
https://hg.mozilla.org/integration/mozilla-inbound/rev/eb418afc24af
part 2 - Use mAttributeCache.GetOrInsert() to avoid a second hashtable lookup for Put(). r=froydnj
Comment 6•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/883902e4d999
https://hg.mozilla.org/mozilla-central/rev/eb418afc24af
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•