Click here to Skip to main content
15,888,070 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Unexpected performance Pin
led mike15-Oct-08 11:24
led mike15-Oct-08 11:24 
GeneralRe: Unexpected performance Pin
Lutosław15-Oct-08 10:59
Lutosław15-Oct-08 10:59 
GeneralRe: Unexpected performance Pin
Mark Salsbery15-Oct-08 11:14
Mark Salsbery15-Oct-08 11:14 
GeneralRe: Unexpected performance Pin
Mark Salsbery15-Oct-08 11:17
Mark Salsbery15-Oct-08 11:17 
GeneralRe: Unexpected performance Pin
led mike15-Oct-08 11:22
led mike15-Oct-08 11:22 
GeneralRe: Unexpected performance Pin
Mark Salsbery15-Oct-08 12:40
Mark Salsbery15-Oct-08 12:40 
GeneralRe: Unexpected performance Pin
Lutosław15-Oct-08 11:55
Lutosław15-Oct-08 11:55 
AnswerRe: Unexpected performance Pin
Mark Salsbery15-Oct-08 11:12
Mark Salsbery15-Oct-08 11:12 
I'm not sure what you're expecting here.

First, if you were running tests in the debugger, forgetaboutit.

Second, comparing times for two sets of loops isn't going to work.
Try putting the loop with the new/delete combined below the other
two loops and you'll see what I mean. There's alot going on with
the heap there, making the results...well, there's no comparison.

Third, comparing native to CLR build...the MSIL is better optimized
than the debug native code (assuming that's what you were comparing to).
Again, no comparison.

I would guess, if you figure out the right combination of optimization switches,
you MAY be able to make the native version a TINY bit faster than the managed
version...maybe...

Lastly, don't believe people that say managed code is slower Smile | :)

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Unexpected performance Pin
Lutosław15-Oct-08 12:05
Lutosław15-Oct-08 12:05 
GeneralRe: Unexpected performance Pin
Mark Salsbery15-Oct-08 12:38
Mark Salsbery15-Oct-08 12:38 
GeneralRe: Unexpected performance Pin
Lutosław16-Oct-08 4:43
Lutosław16-Oct-08 4:43 
GeneralRe: Unexpected performance Pin
Mark Salsbery16-Oct-08 4:48
Mark Salsbery16-Oct-08 4:48 
GeneralRe: Managed code *is* slower Pin
Rob Bryce20-Oct-08 5:50
Rob Bryce20-Oct-08 5:50 
GeneralRe: Managed code *is* slower Pin
Mark Salsbery20-Oct-08 6:10
Mark Salsbery20-Oct-08 6:10 
GeneralRe: Managed code *is* slower Pin
Rob Bryce22-Oct-08 6:53
Rob Bryce22-Oct-08 6:53 
GeneralRe: Managed code *is* slower Pin
Mark Salsbery22-Oct-08 7:39
Mark Salsbery22-Oct-08 7:39 
GeneralRe: Managed code *is* slower Pin
led mike21-Oct-08 4:46
led mike21-Oct-08 4:46 
GeneralRe: Managed code *is* slower Pin
Rob Bryce21-Oct-08 5:31
Rob Bryce21-Oct-08 5:31 
GeneralRe: Managed code *is* slower Pin
led mike21-Oct-08 7:01
led mike21-Oct-08 7:01 
GeneralRe: Managed code *is* slower Pin
Rob Bryce21-Oct-08 8:44
Rob Bryce21-Oct-08 8:44 
QuestionUnmanaged C++ code in managed env error(only framework installled) Pin
balu1234513-Oct-08 21:44
balu1234513-Oct-08 21:44 
AnswerRe: Unmanaged C++ code in managed env error(only framework installled) Pin
Mark Salsbery14-Oct-08 4:09
Mark Salsbery14-Oct-08 4:09 
GeneralRe: Unmanaged C++ code in managed env error(only framework installled) Pin
balu1234514-Oct-08 6:50
balu1234514-Oct-08 6:50 
GeneralRe: Unmanaged C++ code in managed env error(only framework installled) Pin
Mark Salsbery14-Oct-08 7:15
Mark Salsbery14-Oct-08 7:15 
GeneralYou missed one Pin
led mike14-Oct-08 8:05
led mike14-Oct-08 8:05 

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.