Hi Lars,
I do not have specific knowledge that it would be slow but i think that
it should be fast since the functions are fetched from a dll where the
dll holds the pre-loadable versions
of the functions. All it has to do is to look up the entry point of the
function in the dll.
When you do it in Visual Studio, it happens through the name of the
functions. If you view the content of the dll, then you will see the
names of the functions that you are calling.
Once the code is compiled i guess that the call goes by direct address
and so on.
So to answer your question i should think that DllImport does not cause
significant performance loss in your program.
Zoltan.
sc******@yahoo.com írta:
Zoltan,
Will there be a huge performance problem when I wrap in c code?
Performance lost when setting up the call and reading in the result
from dotnet to c?
Lars
zo****************@yahoo.com wrote:
Try netlib.org. I used the cephes mathematical library that was written
in C but than you can
use DllImport to import the C functions into C#.
Good luck !
Zoltan.
www.konor.org