Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: help Pin
Michael Schubert1-Jun-09 22:00
Michael Schubert1-Jun-09 22:00 
QuestionCView::OnFilePrintPreview Pin
Software20071-Jun-09 7:35
Software20071-Jun-09 7:35 
QuestionAdd a scrollbar when I StrechtBlt() an image? Pin
Episodio11-Jun-09 6:44
Episodio11-Jun-09 6:44 
QuestionAfter response WM_DRAWITEM message , how to make a function that it is similar to CMemu::SetMenuItemBitmaps [modified] Pin
bdwzz1-Jun-09 5:53
bdwzz1-Jun-09 5:53 
Questionthreading differences VC6 v VS2005 Pin
Chris Losinger1-Jun-09 4:29
professionalChris Losinger1-Jun-09 4:29 
AnswerRe: threading differences VC6 v VS2005 Pin
Luc Pattyn1-Jun-09 4:52
sitebuilderLuc Pattyn1-Jun-09 4:52 
GeneralRe: threading differences VC6 v VS2005 Pin
Chris Losinger1-Jun-09 5:10
professionalChris Losinger1-Jun-09 5:10 
GeneralRe: threading differences VC6 v VS2005 Pin
Luc Pattyn1-Jun-09 5:49
sitebuilderLuc Pattyn1-Jun-09 5:49 
Hi Chris,

yes I was replying to your post in VS forum, however by the time I had finished, your message was gone; I found this one here, but didn't notice it was somewhat different.

Of the four numbers you mention indeed the multi-threaded VC6 is odd, I still don't believe it is due to the IDE, compiler progress is steady but slow, I have never seen a huge gain from one version tot he next.
The single-thread results being equal suggests very similar code was generated, and the two-threaded VS05 being twice as fast tells us your multi-threading seems to work just fine.

I can't imagine they ever wasted up to 1 second in launching some threads. Maybe the runtime libraries were structured quite differently, causing other/more/larger DLL files to be loaded after you started your timing. How did you measure these times? how did you build and run?

Here are some experiment suggestions:
- enclose code in a for(i=0; i<10; i++) loop and measure 10 executions inside a single process, watching for variance due to code loading, memory allocation effects, and the like. (I always do this, I have seen too many weird things going on in a first execution)
- release build
- run outside VS

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

GeneralRe: threading differences VC6 v VS2005 Pin
Chris Losinger1-Jun-09 6:15
professionalChris Losinger1-Jun-09 6:15 
GeneralRe: threading differences VC6 v VS2005 Pin
Randor 1-Jun-09 7:14
professional Randor 1-Jun-09 7:14 
GeneralRe: threading differences VC6 v VS2005 Pin
ZelionThunder2-Jun-09 17:43
ZelionThunder2-Jun-09 17:43 
GeneralRe: threading differences VC6 v VS2005 Pin
Luc Pattyn1-Jun-09 6:03
sitebuilderLuc Pattyn1-Jun-09 6:03 
GeneralRe: threading differences VC6 v VS2005 Pin
Chris Losinger1-Jun-09 6:16
professionalChris Losinger1-Jun-09 6:16 
AnswerRe: threading differences VC6 v VS2005 Pin
Joe Woodbury1-Jun-09 7:50
professionalJoe Woodbury1-Jun-09 7:50 
GeneralRe: threading differences VC6 v VS2005 Pin
Chris Losinger1-Jun-09 7:53
professionalChris Losinger1-Jun-09 7:53 
QuestionGadjet integration with IE toolbar? Pin
ritz12341-Jun-09 4:16
ritz12341-Jun-09 4:16 
QuestionIn Window forms application C++ Pin
wael_r1-Jun-09 3:33
wael_r1-Jun-09 3:33 
AnswerRe: In Window forms application C++ Pin
David Crow1-Jun-09 3:45
David Crow1-Jun-09 3:45 
AnswerRe: In Window forms application C++ Pin
fanronghua1-Jun-09 19:25
fanronghua1-Jun-09 19:25 
QuestionTyping in Unicode language Pin
Benjamin Bruno1-Jun-09 3:32
Benjamin Bruno1-Jun-09 3:32 
QuestionSNMP development Pin
Jim Crafton1-Jun-09 3:25
Jim Crafton1-Jun-09 3:25 
AnswerRe: SNMP development Pin
Joe Woodbury1-Jun-09 8:19
professionalJoe Woodbury1-Jun-09 8:19 
GeneralRe: SNMP development Pin
Jim Crafton1-Jun-09 8:26
Jim Crafton1-Jun-09 8:26 
QuestionCRichEditCtrl on CMDIChildWnd and to capture mouse control Pin
prithaa1-Jun-09 2:48
prithaa1-Jun-09 2:48 
AnswerRe: CRichEditCtrl on CMDIChildWnd and to capture mouse control Pin
prithaa2-Jun-09 23:41
prithaa2-Jun-09 23:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.