Initial startup can take a long time (+20s) due to the "Downloads" find routine.
Bug #1117840 reported by
Tobin Davis
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Image Writer |
Fix Released
|
Medium
|
Tobin Davis |
Bug Description
V0.7.
Some people report longer startup times for v0.7. This is due to a new function at startup to set the default working directory to "Downloads", which can vary locations in each version of WIndows. Need to profile this code and optimize it.
Changed in win32-image-writer: | |
status: | Confirmed → Fix Committed |
assignee: | Tobin Davis (gruemaster) → Giuseppe Cantone (cantone-g1955) |
status: | Fix Committed → Confirmed |
Changed in win32-image-writer: | |
assignee: | Giuseppe Cantone (cantone-g1955) → Tobin Davis (gruemaster) |
Changed in win32-image-writer: | |
status: | Confirmed → Fix Committed |
Changed in win32-image-writer: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Image Writer searches almost any subdirectory of my home directory for the Downloads folder. Sure, this may take some time. :Subdirectories with QDirIterator: :NoIteratorFlag s.
The search should be restricted to only immediate subdirectories by replacting QDirIterator:
Even better would be using the SHGetKnownFolde rPath API call:
PWSTR pPath = NULL; rPath( FOLDERID_Downloads, KF_FLAG_NO_ALIAS, 0, &pPath)) ) :fromWCharArray ( pPath );
if (SUCCEEDED( SHGetKnownFolde
{
myHomeDir = QString:
CoTaskMemFree( pPath );
}