I am using dll library in my axapta code. In that dll I have (in some cases) 82 000 values that I want to use in axapta. I found that CLR interop in axapta is much slower than calling C# directly from another C# program. According to my test the handling of .dll is like 100 times slower in Axapta than in C# itself. So the code that needs 300ms in C# needs 30s in Axapta.
I am looking for type that is fastest to convert from C# to Axapta one.
I try to use System.Data.DataSet class but accessing its values is slow in AX. (The C# dll just have static method with this return type.)
I try to use Object[][] array but again the receiving values from this by it is slow again. (Again just the C# returns Object[][]).
The receiving the object from C# is fast and it uses 300ms but accessing values is slow so I would like to have some C# type that can convert whole collection at once and fast.
So what is the fastest collection to be converted from C# to Axapta?