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

C / C++ / MFC

 
Generalabout the access violation error at the malloc sentence Pin
wendyyue16-Apr-08 4:38
wendyyue16-Apr-08 4:38 
GeneralRe: about the access violation error at the malloc sentence Pin
Cedric Moonen16-Apr-08 4:53
Cedric Moonen16-Apr-08 4:53 
QuestionRe: about the access violation error at the malloc sentence Pin
CPallini16-Apr-08 5:10
mveCPallini16-Apr-08 5:10 
GeneralRe: about the access violation error at the malloc sentence Pin
wendyyue16-Apr-08 5:26
wendyyue16-Apr-08 5:26 
GeneralRe: about the access violation error at the malloc sentence Pin
CPallini16-Apr-08 5:35
mveCPallini16-Apr-08 5:35 
GeneralRe: about the access violation error at the malloc sentence Pin
David Crow16-Apr-08 10:24
David Crow16-Apr-08 10:24 
QuestionSSE2 Pin
galois16-Apr-08 4:37
galois16-Apr-08 4:37 
GeneralRe: SSE2 Pin
Randor 16-Apr-08 7:37
professional Randor 16-Apr-08 7:37 
Your expectations are perhaps too high. You cannot expect to just write a couple of asm instructions and expect your application to be faster. There is much more to optimization than simply using the latest instruction set.

Your performance hit is probably due to memory access latency due to cache miss. You could possibly use _mm_prefetch[^] hinted with _MM_HINT_T0 and you *might* see a small performance increase but it also may also be purely artificial and simply moving the latency from one code location to another depending on how often you access this address. And if this comparison is rarely calculated you may end up with cache polution rather than a true optimization. These SSE/SEE2 optimizations are typically used for loops containing many operations. You should also understand that _mm_prefetch is simply a hint and may be completely ignored. This is known as speculative fetching.

Best Wishes,

-David Delaune
QuestionHow to inject javascript into webbrowser control Pin
Alexander Fedorov16-Apr-08 4:21
Alexander Fedorov16-Apr-08 4:21 
AnswerRe: How to inject javascript into webbrowser control Pin
led mike16-Apr-08 4:29
led mike16-Apr-08 4:29 
GeneralRe: How to inject javascript into webbrowser control Pin
Alexander Fedorov16-Apr-08 4:50
Alexander Fedorov16-Apr-08 4:50 
GeneralRe: How to inject javascript into webbrowser control Pin
led mike16-Apr-08 5:02
led mike16-Apr-08 5:02 
GeneralRe: How to inject javascript into webbrowser control Pin
Alexander Fedorov16-Apr-08 5:11
Alexander Fedorov16-Apr-08 5:11 
GeneralRe: How to inject javascript into webbrowser control Pin
led mike16-Apr-08 5:27
led mike16-Apr-08 5:27 
GeneralUsing .Net function in vc++ [modified] Pin
rp_suman16-Apr-08 3:01
rp_suman16-Apr-08 3:01 
GeneralRe: Using .Net function in vc++ Pin
Iain Clarke, Warrior Programmer16-Apr-08 3:28
Iain Clarke, Warrior Programmer16-Apr-08 3:28 
GeneralProblem: HANDLE when same name in exe and DLL Pin
janadhana16-Apr-08 1:50
janadhana16-Apr-08 1:50 
GeneralRe: Problem: HANDLE when same name in exe and DLL Pin
Iain Clarke, Warrior Programmer16-Apr-08 2:10
Iain Clarke, Warrior Programmer16-Apr-08 2:10 
GeneralRe: Problem: HANDLE when same name in exe and DLL Pin
janadhana16-Apr-08 2:17
janadhana16-Apr-08 2:17 
GeneralRe: Problem: HANDLE when same name in exe and DLL Pin
CPallini16-Apr-08 2:23
mveCPallini16-Apr-08 2:23 
GeneralRe: Problem: HANDLE when same name in exe and DLL Pin
janadhana16-Apr-08 2:27
janadhana16-Apr-08 2:27 
General3D graph printing Pin
danandu16-Apr-08 1:48
danandu16-Apr-08 1:48 
GeneralRe: 3D graph printing Pin
Schehaider_Aymen16-Apr-08 2:06
Schehaider_Aymen16-Apr-08 2:06 
GeneralRe: 3D graph printing Pin
danandu16-Apr-08 23:51
danandu16-Apr-08 23:51 
GeneralCalculating System ON times Pin
nisha0000016-Apr-08 1:18
nisha0000016-Apr-08 1:18 

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.