dj
What is the right way to bundle native modules?
many ffi modules use plug: https://deno.land/x/plug
6 replies
FFI Difference between buffer and pointer
If you're only passing typed arrays (prefer Uint8Arrays as they can be optimized in Deno FFI), use buffer type.
If you're only passing pointers that some other function returns, use the pointer type.
Using pointer type +
Deno.UnsafePointer.of(TypedArray)
it will have some performance overhead due to additional call. Prefer buffer type for passing typed arrays5 replies