By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,984 Members | 1,016 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,984 IT Pros & Developers. It's quick & easy.

Performance issue when incorporating C++ into C#

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.