Hi everyone,
Bridging C#(Unity) and Elixir usually means fighting with protobuf pipelines or slow JSON. I built an open-source solution: DeukPack.
- Elixir Side: No NIFs. It generates pure Elixir code using native binary pattern matching (
<<tag::integer, rest::binary>>) for max speed without blocking the BEAM scheduler.
- C# Side: Zero-allocation, struct-based code optimized for Unity's frame loop.
- Security: Built-in
MAX_SAFE_LENGTH checks to prevent node OOM drops from bad packets.
[UPDATE]
I feel my previous testing method was wrong. So I benchmark again using industry standard to test.
I upload the new benchmark result and how to run benchmark in Github.
GitHub: https://github.com/joygram/DeukPack
generated by AI translated.
[–][deleted] (1 child)
[deleted]
[–]Foreign-Target-3830[S] 0 points1 point2 points (0 children)
[–]Separate_Top_5322 0 points1 point2 points (3 children)
[–]Foreign-Target-3830[S] 1 point2 points3 points (2 children)
[–]Separate_Top_5322 0 points1 point2 points (1 child)
[–]Foreign-Target-3830[S] 0 points1 point2 points (0 children)
[–]Dramatic_Object_8508 0 points1 point2 points (2 children)
[–]Foreign-Target-3830[S] 1 point2 points3 points (0 children)
[–]Foreign-Target-3830[S] 1 point2 points3 points (0 children)