.net - C++/CLI performance gain -
I started with Plain C long ago, then moved to C ++ and now let me use C ++ / CLI As a waste of performance, I am always trying to squeeze the last drop of the code into every line of code. I am currently in a project that can be done mostly in VB.Net (simplicity, resource availability, etc.), but there are some points which are very sensitive and I want to make those parts in C ++ / CLI Was planning. However, only a small part of it can be taken from the managed code, while the rest should be managed. The question is whether there is a performance advantage to be expected by writing C ++ / CLI managed functions compared to C + or VB.Net? What can I understand from the document I was reading, the only advantage is that managed / unmanaged thumbing is light, is this a case? Because I can not seem to be able to store handles in unmanaged arrays or structures (which I can manipulate fast) such as:
string ^ mystr = "Oh, my!"; Object ^ Mary [10]; Mirera [0] = Maestrate; // The event is zero *, int, handle ... // (though handles it) can be inserted in size32 () == 4 in Win32 / (I hope not to behave like handle Indicator, just stay in the handle)
You only have C ++ / CLI Where you combine the native and managed code, C ++ / CLI lets you call local methods for important sections of the overhead lower code compared to VB.Net. Gives permission I do not recommend switching between the original and managing all the space, because there is still a penalty, but it is acceptable to control the native code for a portion of the code related to the display.
Comments
Post a Comment