Closed Bug 722315 Opened 13 years ago Closed 13 years ago

Increase Firefox startup speed by ~5% (-76ms) on Windows by lazy loading CLSID_DragDropHelper

Categories

(Core :: Widget: Win32, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla13

People

(Reporter: bbondy, Assigned: bbondy)

Details

Attachments

(1 file)

Attached patch Patch v1.Splinter Review
When profiling nsWindow.cpp in Windows I found that enabling drag and drop uses ~70ms on app startup. > NAME: nsWindow::EnableDragDrop > Count: 3 > Total: 0.076:01 > Min: 0.000:00 > Max: 0.076:01 > Average: 0.025:33 > App start time until first paint: 0.890:00 Upon further inspection this all comes from nsNativeDragTarget and in particular: > CoCreateInstance(CLSID_DragDropHelper, NULL, CLSCTX_INPROC_SERVER, > IID_IDropTargetHelper, (LPVOID*)&mDropTargetHelper); mDropTargetHelper isn't needed though until a drag actually happens. For that reason we can lazy load it instead and save the complete 76ms from startup.
Attachment #592708 - Flags: review?(jmathies)
Attachment #592708 - Flags: review?(jmathies) → review+
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: