471,873 Members | 1,220 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,873 software developers and data experts.

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 1256
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
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.