FFI gemに対するFiddleの利点って、Rubyに同梱されていることぐらいかと思っていたけど、もう一つあった。
MemoryView対応していること。

ONNX Runtimeでニューラルネットワークモデルの入出力にFiddleを使うと、ちゃんと速くなる。

0

If you have a fediverse account, you can quote this note from your own instance. Search https://bookwor.ms/users/KitaitiMakoto/statuses/116143918121630207 on your instance and quote it. (Note that quoting is not supported in Mastodon.)