Click here to Skip to main content
15,887,285 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionUnable to get WTS_SESSION_LOGON event notification. How to capture the event when user log on to the machine.? Pin
mbatra3124-Mar-15 0:09
mbatra3124-Mar-15 0:09 
QuestionIs there a way to accelerate the following algorithm for hamming distance calculation? By assembly language? Pin
prime_tang23-Mar-15 23:37
prime_tang23-Mar-15 23:37 
AnswerRe: Is there a way to accelerate the following algorithm for hamming distance calculation? By assembly language? Pin
Richard MacCutchan24-Mar-15 3:40
mveRichard MacCutchan24-Mar-15 3:40 
AnswerRe: Is there a way to accelerate the following algorithm for hamming distance calculation? By assembly language? Pin
Jochen Arndt24-Mar-15 4:14
professionalJochen Arndt24-Mar-15 4:14 
AnswerRe: Is there a way to accelerate the following algorithm for hamming distance calculation? By assembly language? Pin
Chris Losinger24-Mar-15 9:06
professionalChris Losinger24-Mar-15 9:06 
SuggestionRe: Is there a way to accelerate the following algorithm for hamming distance calculation? By assembly language? Pin
.Shoaib25-Mar-15 6:35
.Shoaib25-Mar-15 6:35 
AnswerRe: Is there a way to accelerate the following algorithm for hamming distance calculation? By assembly language? Pin
jschell25-Mar-15 10:58
jschell25-Mar-15 10:58 
AnswerRe: Is there a way to accelerate the following algorithm for hamming distance calculation? By assembly language? Pin
Stefan_Lang8-Apr-15 4:52
Stefan_Lang8-Apr-15 4:52 
I don't see much optimization potential in your function that a decent compiler won't apply already.

That said, the first question you should ask: is there an actual performance bottleneck? Have you measured the time your application takes, and is it really too slow for your purposes?

Second question: if there is a performance issue, which function is causing it? Maybe there are others called alongside this function that take more time and have more optimization potential? Typically, I/O is the slowest part of any application, so reducing I/O to the absolute minimum could already help.

You say it is called often, so the next question would be: can you reduce the number of calls? You said the number of calls is high due to your application design, this implies a different design would require less calls?
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

QuestionLink Error Which .lib to include Pin
ForNow21-Mar-15 19:28
ForNow21-Mar-15 19:28 
AnswerRe: Link Error Which .lib to include Pin
Richard MacCutchan21-Mar-15 23:58
mveRichard MacCutchan21-Mar-15 23:58 
GeneralRe: Link Error Which .lib to include Pin
ForNow22-Mar-15 16:50
ForNow22-Mar-15 16:50 
GeneralRe: Link Error Which .lib to include Pin
Frankie-C23-Mar-15 0:36
Frankie-C23-Mar-15 0:36 
GeneralRe: Link Error Which .lib to include Pin
ForNow23-Mar-15 2:10
ForNow23-Mar-15 2:10 
AnswerRe: Link Error Which .lib to include Pin
Frankie-C22-Mar-15 0:19
Frankie-C22-Mar-15 0:19 
QuestionMALLOC FUNCTION IMPLEMENTATION Pin
Member 1154244420-Mar-15 10:45
Member 1154244420-Mar-15 10:45 
GeneralRe: MALLOC FUNCTION IMPLEMENTATION Pin
PIEBALDconsult20-Mar-15 11:35
mvePIEBALDconsult20-Mar-15 11:35 
QuestionRe: MALLOC FUNCTION IMPLEMENTATION Pin
jeron120-Mar-15 11:56
jeron120-Mar-15 11:56 
AnswerRe: MALLOC FUNCTION IMPLEMENTATION Pin
jschell20-Mar-15 13:03
jschell20-Mar-15 13:03 
QuestionHow to use MFC to design an app that can connect 2 types of database Pin
DHLao19-Mar-15 17:36
DHLao19-Mar-15 17:36 
AnswerRe: How to use MFC to design an app that can connect 2 types of database Pin
Jochen Arndt19-Mar-15 22:38
professionalJochen Arndt19-Mar-15 22:38 
GeneralRe: How to use MFC to design an app that can connect 2 types of database Pin
DHLao19-Mar-15 23:06
DHLao19-Mar-15 23:06 
GeneralRe: How to use MFC to design an app that can connect 2 types of database Pin
Jochen Arndt19-Mar-15 23:29
professionalJochen Arndt19-Mar-15 23:29 
AnswerRe: How to use MFC to design an app that can connect 2 types of database Pin
jschell20-Mar-15 13:06
jschell20-Mar-15 13:06 
QuestionTo copy path of selected file or folder Pin
Member 1147315918-Mar-15 7:33
Member 1147315918-Mar-15 7:33 
QuestionRe: To copy path of selected file or folder Pin
jeron118-Mar-15 8:11
jeron118-Mar-15 8:11 

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.