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

Managed C++/CLI

 
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 
Rob Bryce wrote:
native->managed->native


Managed/native interop is certainly the biggest performance killer.

Those percentages still seem high though (you're not testing in the debugger, right? Wink | ;) ),
although I don't use COM (besides interfaces to things like DirectX, DirectShow, etc) so I
don't know what that adds to the mix.

To get numbers that high, I figure you must be doing some extremely performance
critical stuff across native/managed boundaries. If that's the case, eliminating
that interop is a necessity.

IMO, all managed code gives you is access to the .NET framework. After all, no
self-respecting C++ programmer needs a garbage collector Smile | :)
Given that and what I've read about your situation so far, I would keep everything
compiled native and sprinkle in managed where you need something in the .NET framework.
When you need to cross the native/managed boundary, keep parameter passing to a minimum -
it's that marshaling that's going to hurt performance the most.

Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

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 
GeneralRe: You missed one Pin
Mark Salsbery14-Oct-08 8:12
Mark Salsbery14-Oct-08 8:12 
Questionhelp needed.. STL Pin
wyl8613-Oct-08 0:40
wyl8613-Oct-08 0:40 
GeneralRe: help needed.. STL Pin
George L. Jackson13-Oct-08 4:28
George L. Jackson13-Oct-08 4:28 
QuestionNumber of controls on the Form. Pin
mikobi12-Oct-08 20:31
mikobi12-Oct-08 20:31 
AnswerRe: Number of controls on the Form. Pin
Lutosław15-Oct-08 12:17
Lutosław15-Oct-08 12:17 
QuestionSplitter, "OnSize strikes back !" Pin
CrocodileBuck11-Oct-08 1:00
CrocodileBuck11-Oct-08 1:00 
AnswerRe: Splitter, "OnSize strikes back !" Pin
Mark Salsbery11-Oct-08 6:27
Mark Salsbery11-Oct-08 6:27 
GeneralRe: Splitter, "OnSize strikes back !" Pin
CrocodileBuck11-Oct-08 7:51
CrocodileBuck11-Oct-08 7:51 

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.