Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

Speed of function in IPP

postaquestion
Beginner
462 Views

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
462 Views

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

Vladimir

0 Kudos
Reply