devraymondsh/kivi

Use `read` in `bun:ffi` instead of `ArrayBufffer` and `DataView` for better performance

Closed this issue · 1 comments

Bun has a read functionality which eliminates the need for creating ArrayBuffer and DataView and provides a better performance. Let's use it in the Bun driver.

Since we have access to underlying data and we can avoid reading indirectly from the pointer, this won't really improve performance for us.