Closed
Bug 266514
Opened 20 years ago
Closed 14 years ago
Tp hit from ClassInfo for nsConsoleService
Categories
(Core :: XPConnect, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: timeless, Unassigned)
References
Details
(Keywords: perf)
attachment 155795 [details] [diff] [review] (patch for bug 254555) marked nsConsoleService as THREADSAFE (and also SINGLETON per dougt). We believe this caused a perf hit (Tp ~8s). ClassInfo is necessary, so we need to work on improving its performance / reducing the performance hit. My guess is that by implementing nsIClassInfo, xpconnect ends up doing extra work to check classinfo flags on the consoleservice each time it's hit. i could be wrong :(.
Comment 1•20 years ago
|
||
Hmm, seems like it'd be cool to not need to worry about XPConnect's performance here in the case where the JS console isn't even open. We shouldn't have any JS listeners in that case, but apparently we do. Anyone know why?
Comment 2•20 years ago
|
||
Do we? I don't see other places where registerListener() is called, other than the JS console's init() method. May be worth putting a breakpoint in registerListener() and seeing whether it's hit. Could the classinfo change possibly affect calls to the console service from C++ code? I'd guess no, but... It's also possible (though very unlikely) that the performance regression was due to bug 265336 instead.
Comment 3•20 years ago
|
||
(In reply to comment #2) > Could the classinfo change possibly affect calls to the console service from C++ > code? I'd guess no, but... I'd guess no too...
Updated•18 years ago
|
Assignee: dbradley → nobody
Updated•18 years ago
|
QA Contact: pschwartau → xpconnect
We're not going to isolate and fix a perf regression from 6 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
•