Replies: 1 comment
-
最好把文件一起贴过来吧,一个个点过去太不方便了 @byte911 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
背景:erlang系语言,并发性能好,适合处理业务;但是CPU密集型计算性能很低;Benchmark垫底!
源文件:erl_nif.zig nif_base.zig main.zig build.zig zig_nif.ex
Zig版本: 0.10.0-dev.3406+14f0b7057
编译、调试:
zig build; cp zig-out/lib/libnifs.dylib xxx/priv/libnifs.so
iex -S mix
Nif.add 1,99
Beta Was this translation helpful? Give feedback.
All reactions