Closed
Bug 783820
Opened 12 years ago
Closed 12 years ago
rm jsdhash
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
DUPLICATE
of bug 884649
People
(Reporter: mccr8, Unassigned)
References
Details
(Whiteboard: [js:t])
The only remaining users are in XPConnect.
The header is also included in /js/src/vm/Xdr.cpp for no reason.
There is also a reference to it in comments in pldhash.h and pldhash.cpp.
Comment 1•12 years ago
|
||
\o/
Comment 2•12 years ago
|
||
> The only remaining users are in XPConnect.
But there are many of them. Is the idea to move jsdhash.{cpp,h} somewhere under js/xpconnect/ in order to minimize its exposure (in bug 647367 I recently did a similar thing by moving jshash.{h,cpp} into js/jsd/) or to replace those many uses with something else?
Reporter | ||
Comment 3•12 years ago
|
||
There are a lot of them, but they are mostly very simple and very similar. I have a stack of 7 or so patches that remove most of them by converting them to nsTHashtable, but it might make more sense to just create a new XPCMap template that wraps an nsTHashtable.
Reporter | ||
Comment 4•12 years ago
|
||
You can see an example of one of these patches in bug 781589. Very mechanical for the most part.
Depends on: 781589
Comment 5•12 years ago
|
||
I already converted a couple of them to js::HashTable in bug 738868 and bug 772292. Shame to use two different hashtable types here.
Reporter | ||
Comment 6•12 years ago
|
||
Yeah, I noticed a few were switched already. I prefer to use a infallible hash table...
Comment 7•12 years ago
|
||
It might actually be better to use nsTHashTable in xpconnect, since XPConnect is part of the size-burdened XUL and, since it is just a shim for PL_DHashTable, nsTHashTable generates a lot less code.
Comment 8•12 years ago
|
||
Good points. I'd be happy to review patches switching the ones I touched.
Updated•12 years ago
|
Whiteboard: [js:t]
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•