Closed Bug 18315 Opened 25 years ago Closed 25 years ago

[perf] cache "miss" of overlays.rdf & chrome.rdf

Categories

(Core :: XUL, defect, P2)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: waterson, Assigned: pavlov)

Details

(Whiteboard: getting testing feedback from engineer(s))

Attachments

(1 file)

overlays.rdf and chrome.rdf are read a zillion times on startup. The versions in
the "global" directory are read multiple (e.g., 21) times, even though the file
doesn't exist.

Cache the "miss" of these files so that we don't waste I/O trying to find them
over and over.

On Mac startup, this accounts for at least 0.5s.
Status: NEW → ASSIGNED
Priority: P3 → P2
Target Milestone: M12
i know how to fix this and will attach a patch in a few
Assignee: waterson → pavlov
Status: ASSIGNED → NEW
fix looks good to me pav. check it in when M12 opens.
This patch is bollocks. You can't put nsnull into an nsSupportsHashTable, because
the hash table calls NS_ADDREF on it. It crashes on my machine.
pav: use something besides an nsSupportsHashTable, and just put a "1" in there.
Alternatively, change nsSupportsHashTable to allow null entries (change a bunch
of NS_ADDREF to NS_IF_ADDREF, and NS_IF_RELEASE).
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Checked in a fix -- make nsSupportsHashTable capable of having null entries, and
checked in the rdf part of pav's patch.
Whiteboard: getting testing feedback from engineer(s)
QA Contact: ckritzer → waterson
i'll verify this one...
BULK MOVE: Changing component from XUL to XP Toolkit/Widgets: XUL.  XUL 
component will be deleted.
Component: XUL → XP Toolkit/Widgets: XUL
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: waterson → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: