Click here to Skip to main content
16,008,075 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: VLC player Pin
Hamid_RT16-Jun-08 20:10
Hamid_RT16-Jun-08 20:10 
Questionoptional/overloaded member function template parameter Pin
zildjohn0116-Jun-08 16:00
zildjohn0116-Jun-08 16:00 
AnswerRe: optional/overloaded member function template parameter Pin
zildjohn0117-Jun-08 2:09
zildjohn0117-Jun-08 2:09 
QuestionDetermining the "default" name server, like nslookup.exe does Pin
Dale Fugier16-Jun-08 14:00
Dale Fugier16-Jun-08 14:00 
QuestionSame code takes different times!! Pin
Kiran Satish16-Jun-08 12:16
Kiran Satish16-Jun-08 12:16 
AnswerRe: Same code takes different times!! Pin
zildjohn0116-Jun-08 16:01
zildjohn0116-Jun-08 16:01 
GeneralRe: Same code takes different times!! Pin
Kiran Satish16-Jun-08 16:19
Kiran Satish16-Jun-08 16:19 
AnswerRe: Same code takes different times!! Pin
Alan Balkany17-Jun-08 5:02
Alan Balkany17-Jun-08 5:02 
There are several possible explanations. For example, if your code is in a small application, it may fit into the cache and be executed without having to read memory. (The cache is in the CPU, but memory is on external chips which take longer to read.) This would run faster.

A larger application wouldn't all fit into the cache, so it would have to read from memory more often, which would be slower.

A similar effect can occur with small/large amounts of data.

If your code is by itself in a function, the compiler may assign register variables to your pointers, which are fast. If the code is embedded in a larger function, the registers may be assigned to other variables, which would slow down your loop.

Another possible explanation: If one of the applications has significantly more TRUE values for the if statement, it will do many more times as much work, which will be slower.
GeneralRe: Same code takes different times!! Pin
Kiran Satish18-Jun-08 8:51
Kiran Satish18-Jun-08 8:51 
GeneralRe: Same code takes different times!! Pin
Alan Balkany19-Jun-08 3:22
Alan Balkany19-Jun-08 3:22 
QuestionWinSock Remote Connection Pin
Knight Rider16-Jun-08 11:29
Knight Rider16-Jun-08 11:29 
Questionwin32 user-drawn menus Pin
greghint16-Jun-08 6:33
greghint16-Jun-08 6:33 
AnswerRe: win32 user-drawn menus Pin
James R. Twine16-Jun-08 8:01
James R. Twine16-Jun-08 8:01 
GeneralRe: win32 user-drawn menus Pin
greghint16-Jun-08 9:25
greghint16-Jun-08 9:25 
GeneralRe: win32 user-drawn menus Pin
zildjohn0117-Jun-08 2:09
zildjohn0117-Jun-08 2:09 
GeneralRe: win32 user-drawn menus Pin
greghint17-Jun-08 9:35
greghint17-Jun-08 9:35 
GeneralRe: win32 user-drawn menus [modified] Pin
greghint18-Jun-08 8:00
greghint18-Jun-08 8:00 
QuestionMoving desktop shortcuts to desired position Pin
Manfred Staiger16-Jun-08 5:13
Manfred Staiger16-Jun-08 5:13 
QuestionCRuntimeClass linker error unresolved external – how to troubleshoot? Pin
Vaclav_16-Jun-08 5:13
Vaclav_16-Jun-08 5:13 
AnswerRe: CRuntimeClass linker error unresolved external – how to troubleshoot? Pin
Chris Losinger16-Jun-08 6:54
professionalChris Losinger16-Jun-08 6:54 
GeneralRe: CRuntimeClass linker error unresolved external – how to troubleshoot? Pin
Vaclav_16-Jun-08 7:13
Vaclav_16-Jun-08 7:13 
GeneralRe: CRuntimeClass linker error unresolved external – how to troubleshoot? Pin
Vaclav_16-Jun-08 7:16
Vaclav_16-Jun-08 7:16 
AnswerRe: CRuntimeClass linker error unresolved external – how to troubleshoot? Pin
Stephen Hewitt16-Jun-08 15:44
Stephen Hewitt16-Jun-08 15:44 
GeneralRe: CRuntimeClass linker error unresolved external – how to troubleshoot? Pin
Vaclav_16-Jun-08 17:28
Vaclav_16-Jun-08 17:28 
QuestionCreating an embeded window in Internet Explorer Pin
chatko16-Jun-08 2:30
chatko16-Jun-08 2:30 

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.