Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / June 2006

Tip: Looking for answers? Try searching our database.

Managed to unmanaged perforformance - opinions sought

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Toadfather - 27 Jun 2006 22:32 GMT
Hi all

Exiting COM ATL DLL wrapping a C++ library. Interoping from a C#
application, passing a large string containng XML (5-130kb). Need to
significantly improve performance of both the interoping and the
performance of the native functions (performance critical app).

Opinions sought on most worthwhile course of action...have identified 4
options...

1. Implement a managed C++ wrapper and link to underling C++ functions,
marshalling non-native types where necessary. Thus eliminating COM
(quick win?)
2. Re-write C++ code in C#. (no quick win, not possible to re-write all
of it also)
3. Recompile C++ code with VC7 or higher (currently VC6)...quick win?
4. Re-architect C++ code (no quick win)

Thanks all
Volker Hetzer - 28 Jun 2006 15:09 GMT
Toadfather schrieb:
> Hi all
>
> Exiting COM ATL DLL wrapping a C++ library. Interoping from a C#
> application, passing a large string containng XML (5-130kb). Need to
> significantly improve performance of both the interoping and the
> performance of the native functions (performance critical app).
And you have profiled that the com-interop is the bottleneck?

Lots of Greetings!
Volker

Signature

For email replies, please substitute the obvious.

Toadfather - 29 Jun 2006 20:39 GMT
You are right in your implication that the bottleneck is not
neccesarily the marshaling. In fact, analysis done today has shown this
to be the case. However, am still intrigued as to performance
considerations between managed and unmanaged code in general. For
example, you might thing COM is slower than marshalling to a native
exported function from a DLL, but this; certainly in our case; doesnt
seem too be the case!

Thanls for replying!

> Toadfather schrieb:
> > Hi all
[quoted text clipped - 7 lines]
> Lots of Greetings!
> Volker

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.