Closed Bug 120901 Opened 23 years ago Closed 23 years ago

XPCWrappedNative::GetNative() wastes time QI'ing to nsISupports.

Categories

(Core :: XPConnect, defect, P2)

defect

Tracking

()

VERIFIED FIXED
mozilla0.9.9

People

(Reporter: jst, Assigned: jst)

Details

(Keywords: perf, Whiteboard: [HAVE FIX])

Attachments

(1 file)

When XPCWrappedNative::GetNative() is called, the code already has a pointer
(mIdentity) to the correct vtable in the native pointer, so the QI to
nsISupports is not needed. Patch coming up.
Status: NEW → ASSIGNED
Keywords: perf
Priority: -- → P2
Whiteboard: [HAVE FIX]
Target Milestone: --- → mozilla0.9.9
Comment on attachment 65741 [details] [diff] [review]
Don't QI to nsISupports when we already have a mIdentity pointer.

sr=jband
How'd I leave that in?
Attachment #65741 - Flags: superreview+
Comment on attachment 65741 [details] [diff] [review]
Don't QI to nsISupports when we already have a mIdentity pointer.

r=dbradley
Attachment #65741 - Flags: review+
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Marking Verified - 
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: