Closed
Bug 1217436
Opened 9 years ago
Closed 8 years ago
Make nsIdentifierMapEntry::mIdContentList a nsAutoTArray to save an allocation
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla55
People
(Reporter: poiru, Assigned: smaug)
References
Details
Attachments
(2 files)
1.81 KB,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
2.03 KB,
patch
|
Details | Diff | Splinter Review |
See bug 819090 comment 32 and onwards.
Assignee | ||
Updated•8 years ago
|
Assignee: birunthan → bugs
Assignee | ||
Comment 1•8 years ago
|
||
Using non-moveable PLDHashEntryHdr is not good at all for the performance, but seems like in common
cases the allocation is even slower.
We do need to get SmallVoidArray back in some form, but that shouldn't block this bug.
Assignee | ||
Comment 2•8 years ago
|
||
Assignee | ||
Updated•8 years ago
|
Attachment #8857686 -
Flags: review?(nfroyd)
Assignee | ||
Comment 3•8 years ago
|
||
Commit message could be
-m "Bug 1217436 - Make nsIdentifierMapEntry::mIdContentList an AutoTArray to save an allocation, r=nfroyd"
Assignee | ||
Comment 4•8 years ago
|
||
I'm still wondering if
Element* mFirstElement;
nsTArray<Element*> mIdContentList;
should be used here to allow memmoves.
That should give better perf but possible make the code quite a bit more complicated.
But that is for another bug.
![]() |
||
Comment 5•8 years ago
|
||
Comment on attachment 8857686 [details] [diff] [review]
id_hash_autoarray.diff
Review of attachment 8857686 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/base/nsDocument.h
@@ +156,5 @@
> explicit nsIdentifierMapEntry(const nsAString* aKey) :
> nsStringHashKey(aKey), mNameContentList(nullptr)
> {
> }
> + nsIdentifierMapEntry(nsIdentifierMapEntry&& aOther) :
Is it possible to delete the copy constructor (and maybe copy assignment, too) here just to make sure, or does that run into weird compile errors somewhere?
Attachment #8857686 -
Flags: review?(nfroyd) → review+
Assignee | ||
Comment 6•8 years ago
|
||
Still compiling.
Pushed by opettay@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/0bd3edbb660b
Make nsIdentifierMapEntry::mIdContentList an AutoTArray to save an allocation, r=nfroyd
Comment 8•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in
before you can comment on or make changes to this bug.
Description
•