Hi,
i have two issues while debugging my application( simple desktop application ) in VS 2008 :
1.)when i start debugging( f5 ) it takes about 12-14 secondes to load the application.
2.)In my application, i have a button labeled"Options"; if the User clicks it, it should display a (wxAuiMDIParentFrame) notebook.
If i am in debugging and press the "Options" button, it takes about 30-35 secondes to load the notebook for the first time . This notebook has several wxBitmap images inside it, and i have noticed that, adding more wxBitmap images(128x128) makes the loading time slower...
Can you, please, tell me if have the same issue?
Thanks in advance.
Debugging App in Visual Studion 2008 Express very slow
-
- Earned a small fee
- Posts: 15
- Joined: Sun May 17, 2009 4:45 pm
-
- Earned a small fee
- Posts: 15
- Joined: Sun May 17, 2009 4:45 pm
That sounds reasonable to me; maybe someone else here has an idea what could cause this slowdown, but I don't. By 'profiling' I meant use some way to find where the time is spent. Profiling is usually not done in a debugger AFAIK though, so maybe your best bet is perhaps using wxGetLocalTimeMillis() at regular intervals to know what is so slow... sorry, this is a poor way to go, I know, I just have no better idea
"Keyboard not detected. Press F1 to continue"
-- Windows
-- Windows
-
- Earned a small fee
- Posts: 15
- Joined: Sun May 17, 2009 4:45 pm
ok, i have done that and it seems that creating icons, images, wxBitmapButton and wxBitmap is causing that.
The following code takes 10 secondes to finish, and it is repeated 3 times, so 3 x 10 = 30 secondes to load notebook with images:
The following code takes 4,8 secondes to finish, and it is causing the slow down on program startup:
What can i do to speed it up, because it is really boring when it comes to debugging with timings like those
Has that anything to do with
Info:
----
I have noticed that linking time is increased too, it takes about 14-16 secondes.
-Security software disabled.
-no symboles loaded.
-"Enable Edit and Continue" enabled/disabled makes no difference.
-Total number of source files 52, and the total number of lines of code is : 22342 without free spaces, comments....
The following code takes 10 secondes to finish, and it is repeated 3 times, so 3 x 10 = 30 secondes to load notebook with images:
Code: Select all
wxBitmapButton* bmpButton = new wxBitmapButton(this, ID_AUI_BMPBUTTON, wxBitmap(DEF_xpm));
bmpButton->SetBitmapSelected(wxBitmap(ON_xpm));
bmpButton->SetBitmapDisabled(wxBitmap(OFF_xpm));
Code: Select all
icon_1 = new wxIcon(1_xpm);
icon_2 = new wxIcon(2_xpm);
icon_3 = new wxIcon(3_xpm);
icon_4 = new wxIcon(4_xpm);
icon_5 = new wxIcon(5_xpm);
icon_6 = new wxIcon(6_xpm);
icon_7 = new wxIcon(7_xpm);
icon_8 = new wxIcon(8_xpm);
What can i do to speed it up, because it is really boring when it comes to debugging with timings like those
Has that anything to do with
Code: Select all
wxImage::AddHandler( new wxPNGHandler );
Info:
----
I have noticed that linking time is increased too, it takes about 14-16 secondes.
-Security software disabled.
-no symboles loaded.
-"Enable Edit and Continue" enabled/disabled makes no difference.
-Total number of source files 52, and the total number of lines of code is : 22342 without free spaces, comments....
-
- Earned a small fee
- Posts: 15
- Joined: Sun May 17, 2009 4:45 pm
Well i think contacting Micro$oft is useless in this case.
I have tested with different Operating Systems but no luck.
I have digged deeper in the code, and found the suspected function causing this slowdown:
in
So, i replaced the XPM files with BMP files, and now the notebook loading time is reduced from 35 secondes to 1,5 second (unbelievable isn't it?)
Can you test the above function and tell me how much times it takes to load 128x128 XPM file(in debugging mode of course)?
I have tested with different Operating Systems but no luck.
I have digged deeper in the code, and found the suspected function causing this slowdown:
Code: Select all
wxImage wxXPMDecoder::ReadData(const char* const* xpm_data)
This function takes about 6-7 second to read a single 128x128 XPM image file....wxWidgets-2.8.10\src\common\xpmdecod.cpp
So, i replaced the XPM files with BMP files, and now the notebook loading time is reduced from 35 secondes to 1,5 second (unbelievable isn't it?)
Can you test the above function and tell me how much times it takes to load 128x128 XPM file(in debugging mode of course)?