The problem is clearly described in https://rdotnet.codeplex.com/discussions/458695
* Brush up on Marshal and P/Invoke options to see what's feasible
* Have tests, unit tests (regression tests) preferably
Comments: Attaching the profiling output so far for integer and numeric vectors.