Community
cancel
Showing results for 
Search instead for 
Did you mean: 
postaquestion
Beginner
81 Views

Speed of function in IPP

Hello. I am using IPP library with .NET. I do it somehow like this:
[DllImport(lib)]
public static extern IppStatus ippsCrossCorr_32fc(Complex_f* pSrc1, int len1, Complex_f* pSrc2, int len2, Complex_f* pDst, int dstLen, int lowLag);

I tested the speed of this function's execution in C++ and C# and C++ is about 10% better. How can you explain that? I know that C# is managed and a bit slower than unmanaged C++ but there is no reason to be slow in this case because all work is done inside binary dll. Thanks.

0 Kudos
1 Reply
Vladimir_Dudnik
Employee
81 Views

All work is done inside DLL except data marshalling required by managed runtime.

Vladimir

Reply