469,626 Members | 883 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,626 developers. It's quick & easy.

Performance issue when incorporating C++ into C#

bob
Currently i'm writing some low level communication modules in C++ and
is thinking of putting it into a library so that it can be used in C#.
My concern is the performance issue when putting C++ codes into C#.
Does anyone has any idea(s) on this issue????
Nov 16 '05 #1
1 1201
bob,

You are going to get a little bit of a performance hit, because when
bringing over data from the unmanaged code (C++), you will have to marshal
it. This is always going to be a perf hit. Of course, it might be
acceptable to you, depending on how often this data is marshaled over.

It might be easier to do it completely in managed code.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"bob" <cs*******@yahoo.com> wrote in message
news:db*************************@posting.google.co m...
Currently i'm writing some low level communication modules in C++ and
is thinking of putting it into a library so that it can be used in C#.
My concern is the performance issue when putting C++ codes into C#.
Does anyone has any idea(s) on this issue????

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

36 posts views Thread by Ron Johnson | last post: by
16 posts views Thread by David W. Fenton | last post: by
13 posts views Thread by bjarne | last post: by
4 posts views Thread by smoody | last post: by
7 posts views Thread by James | last post: by
17 posts views Thread by 57R4N63R | last post: by
5 posts views Thread by Varangian | last post: by
4 posts views Thread by skotapal | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.