...
- More work / less calls is better (see the Sobek kernels for examples of how calls are aggregated into larger chunksfor example IRemoteRtcToolsDllWrapper on how multiple calls can be combined into a single call)
- Send large multi dimensional arrays as one dimensional
- Avoid large arrays in custom types as they aren't optimized
- If your dll writes to the console alot (eg write(,)), this can have significant impact on the performance, even if the console is not visible. Try again with debug messages off!
- If in doubt, ask! The code can be changed / extended to support more options!
...