Re: minimizing the cost of managed/unmanaged collaboration

Alan Baljeu <[email protected]> Wed, 28 Mar 2007 15:35:10 -0400
Newsgroups gmane.comp.windows.devel.dotnet.cx
Message-ID <019101c77170$331b4710$1dc80ac6@CTI>
Peter Ritchie writes:
> 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).

I understand you to mean that using COM declarations in C# and C++ is the faster way to
operate compared to declaring C API's in C# and calling them.  If not, please correct me.

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

I prefer writing in C#, but it isn't possible to go completely to managed code.  As speed is
an issue, perhaps I ought to migrate code in the other direction.  I would migrate some code
across the boundary in one direction or the other, if I had a good understanding of the
costs of crossing that barrier, and knew that it was significant.  If anyone can direct me
in obtaining this understanding, please speak up.

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

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