Closed
Bug 1181443
(replace-nsTHashtable-Enumerate)
Opened 10 years ago
Closed 9 years ago
Replace nsTHashtable::EnumerateEntries() with an iterator
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla42
People
(Reporter: n.nethercote, Assigned: n.nethercote)
References
Details
Attachments
(3 files)
4.63 KB,
patch
|
froydnj
:
review+
n.nethercote
:
checkin+
|
Details | Diff | Splinter Review |
4.26 KB,
patch
|
froydnj
:
review+
n.nethercote
:
checkin+
|
Details | Diff | Splinter Review |
4.45 KB,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
Iterators are *so* much nicer than Enumerate()-style functions -- no need for a separate function, no need to bundle up relevant local variables into a |void*| closure, etc.
Currently there are about 168 calls to nsTHashtable::EnumerateEntries(), so this is going to take a while.
Assignee | ||
Updated•10 years ago
|
Alias: replace-nsTHashtable-Enumerate
Depends on: 1184432
Assignee | ||
Comment 1•9 years ago
|
||
nsCheapSet is used little enough that I didn't bother creating an iterator for
it.
I removed the dependency on PLDHashOperator by introducing nsCheapSetOperator,
which is equivalent.
Attachment #8637782 -
Flags: review?(nfroyd)
Assignee | ||
Comment 2•9 years ago
|
||
Attachment #8637783 -
Flags: review?(nfroyd)
Assignee | ||
Comment 3•9 years ago
|
||
This is not yet able to land -- bug 1182961 is the main remaining obstacle --
but I wrote it in preparation.
Attachment #8637788 -
Flags: review?(nfroyd)
Updated•9 years ago
|
Attachment #8637782 -
Flags: review?(nfroyd) → review+
Updated•9 years ago
|
Attachment #8637783 -
Flags: review?(nfroyd) → review+
Updated•9 years ago
|
Attachment #8637788 -
Flags: review?(nfroyd) → review+
Assignee | ||
Updated•9 years ago
|
Keywords: leave-open
Assignee | ||
Updated•9 years ago
|
Attachment #8637782 -
Flags: checkin+
Assignee | ||
Updated•9 years ago
|
Attachment #8637783 -
Flags: checkin+
Assignee | ||
Updated•9 years ago
|
Keywords: leave-open
Comment 7•9 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox42:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
Assignee | ||
Comment 8•9 years ago
|
||
Part 3 backed out because I need to back out bug 1182961's patches:
https://hg.mozilla.org/integration/mozilla-inbound/rev/11f2aec8187f
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 10•9 years ago
|
||
Comment 11•9 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 9 years ago → 9 years ago
status-firefox43:
--- → fixed
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•