I need to pass data from C++ to C# frequently. It should be as fast as possible as i'm writing ultra low latency trading application.
I have pure C++ project (will be ported to Linux later). I need to pass data from it to my C# project. I always need to pass the same structure (if this is important).
Structure looks like that: Ticker = "MSFT" Price = "30" Volume = "10" Side = "Buy"
I imagine two options:
- write C++-CLI wrapper which will pass UnmanagedMemoryStream from C++ to C#
- use memory-mapped files
What would be:
- faster
- easier to implement
- easier to port to Linux ?