Re: minimizing the cost of managed/unmanaged collaboration

Peter Ritchie <[email protected]> Tue, 27 Mar 2007 13:34:08 -0400
Newsgroups gmane.comp.windows.devel.dotnet.cx
Message-ID <LISTSERV%[email protected]>
In terms of using your native API from managed, out of the box; I don't
think there's anything specific for general performance between
managed/unmanaged code.  With VC2003, using IJW will be faster than doing
the PInvoking yourself (or so I'm told).  Migrating to VS2005 and C++
Interop (Implicit PInvoke) you'll get another slight boost int performance.

As you incrementanly move your native to managed you'll be able to get
some performance metrics and test performance increases/decreases.

On Tue, 27 Mar 2007 13:21:59 -0400, Alan Baljeu
<[email protected]> wrote:

>> And I would like to know what is the way to make things
>> fastest.  Possibly I will need to rewrite some modules into
>> managed code to reduce the cost.
>>
>> > What kind of large data you'll be transferring and which way?
>>
>> Lots of strings and numbers being sent to and from C#
>> in-memory storage.
>>
>> >
>> > On 3/26/07, Alan Baljeu <[email protected]> wrote:
>> > > My program involves a significant amount of native C++
>> code and C#
>> > > code, and I'm using VS 2003.  There is necessarily a large
>> > amount of
>> > > data which needs to be transferred between the two
>> > environments, using
>> > > COM and/or PInvoke.  How can I understand the costs
>> > involved in this transfer, and how can I minimize these costs?

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com