Closed
Bug 92256
Opened 24 years ago
Closed 14 years ago
Tracking bug: nsVoidArray->nsAutoVoidArray, nsCStringArray
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: jesup, Unassigned)
References
Details
(Keywords: meta, perf)
Many uses of nsVoidArray would be better served by using nsAutoVoidArray,
especially if we know that there will (likely) be a small number of items in the
array. nsVoidArray makes more sense when it's unlikely there will be any
entries (especially if there are a lot of these objects), or if it's likely
there will be more than 8. In other cases, it makes sense (if the size is known
ahead of time or guessable and is larger than 8) to use nsVoidArray(size).
nsStringArray/nsCStringArray can also benefit by using initializers when the
size is known.
See bug 90545 for examples in the patch; it fixed many cases of this.
| Reporter | ||
Comment 2•24 years ago
|
||
| Reporter | ||
Comment 3•24 years ago
|
||
Bug 94243 is the bug for the remaining pieces of 90545
Status: NEW → ASSIGNED
Depends on: 94243
Comment 4•24 years ago
|
||
Adding a lonely nsVoidArray->nsAutoVoidArray bug which may or may not have been
cleaned up.
Depends on: 80210
Updated•20 years ago
|
Assignee: rjesup → nobody
Status: ASSIGNED → NEW
QA Contact: scc → xpcom
Comment 5•18 years ago
|
||
If there are no more open dependencies, should this bug be closed?
Keywords: meta
Priority: P2 → --
Comment 6•16 years ago
|
||
(In reply to comment #5)
+1
Close? 3 years have passed.
Updated•14 years ago
|
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•