by thatisit · 4y ago · 0 comments
We need to wrap C libraries though. Does anyone have experience with or reliable benchmarks for the C interface?
I benchmarked a while ago when testing this library https://github.com/Const-me/ComLightInterop#performance On the computer I was using at that time (probably Ryzen 5 3600 CPU) the overhead was 15-20 nanoseconds per call.
.NET 7 finally also ships with NativeAOT which compiles your C# to native code that you can expose as a C library.