5 ms·
I tried that but cut it from the code because it had the same performance.
by xnorswap 2y ago
I tried that but cut it from the code because it had the same performance.
- Rohansi 2y agoHave you tried the newer [LibraryImport] attribute?
- xnorswap 2y agoI haven't, I wasn't aware of that attribute. I would gratefully accept a PR with such a benchmark case. Edit: I've now tried it, and it reduced overhead a small amount. (e.g. Average 7.5 ns vs 8 ns for the 10-byte array )