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)
Tracking
()
RESOLVED
FIXED
mozilla13
People
(Reporter: bbondy, Assigned: bbondy)
Details
Attachments
(1 file)
5.32 KB,
patch
|
jimm
:
review+
|
Details | Diff | 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)
Nice.
![]() |
||
Updated•13 years ago
|
Attachment #592708 -
Flags: review?(jmathies) → review+
Assignee | ||
Comment 2•13 years ago
|
||
Target Milestone: --- → mozilla13
Comment 3•13 years ago
|
||
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.
Description
•