Closed Bug 266514 Opened 20 years ago Closed 14 years ago

Tp hit from ClassInfo for nsConsoleService

Categories

(Core :: XPConnect, defect)

x86
Windows XP
defect
Not set
normal

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 :(.
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?
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.
(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...
Assignee: dbradley → nobody
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.