Good morning,
I am writting a spell checker which, for the case, is performance-critical. That being, and since I am planning to connect to a DB and making the GUI using C#, I wrote an edit-distance calculation routine in C and compiled to a DLL which I use in C# using DllImport
. The problem is that I think (though I am possibly wrong) that marshalling words one by one from String
to char *
is causing a lot of overhead. That being, I thought about using C++/CLI so that I can work with the String
type in .NET directly... My question is then how does C++/CLI performance compares to native C code for heavy mathematical calculations and array access?
Thank you very much.