Performance comparison between C++ and .NET bindings

34 views
Skip to first unread message

Mark Nuzz

unread,
Apr 14, 2014, 3:39:07 PM4/14/14
to spar...@googlegroups.com
Hello,

I wasn't able to find this question answered anywhere.  I'm wondering if there's a significant performance difference between the C++ and .NET bindings?  Does the .NET binding use P/Invoke against a native C++ DLL or is the .NET version a "full port"?

I'm looking to get a lot of performance out of Sparksee and am weighing my options.  Thanks!

Mark

c3po.ac

unread,
Apr 15, 2014, 4:22:37 AM4/15/14
to spar...@googlegroups.com
Hi,

As you suggest, the .Net is a thin layer over the native C++ using P/Invoke. Therefore this API might be slightly slower, but the performance penalty is probably not enough to justify changing the language if the .NET version is more convenient for your application.

The difference of using the C++ or any other of the bindings, is related to the number of API calls and its arguments, but does not depend on the size of the database. Nevertheless, you may wish to test with your own code so you'll get an idea of the exact performance of your application.

A tip if you use .NET or java is to reuse the Value class instances if you are using them in a loop (usually for setting attributes).

Best regards.

El dilluns 14 d’abril de 2014 21:39:07 UTC+2, Mark Nuzz va escriure:
Reply all
Reply to author
Forward
0 new messages