Hank Sloka

Hank Sloka

  • NA
  • 1
  • 0

Moving arrays across MAF pipeline is very slow

Sep 1 2014 8:12 AM
Hi,

I have a project where I'm moving large arrays across a MAF pipeline to an addin and it's taking a very long time. I'm just passing arrays across calls through the pipeline with no deep copying or iterations.

To pass 3 arrays of 291,000 items, 1 array as long, 1 array as double and the other array as enums, takes 3,150ms. Getting an array of 291,000 doubles back takes less than 1ms.

In the Host

addinFunction.SetArrays(array1, array2, array3);

in the actual addin the signature is

public void SetArrays(long[] array1, double[] array2, myEnum[] array3);

both side adapters only do something like

public void SetArrays(long[] array1, double[] array2, myEnum[] array3)
{
_view.SetArrays(array1, array2, array2);
}

Anyone have any ideas or hints?

Many thanks in advance.
Hank