website icon indicating copy to clipboard operation
website copied to clipboard

Feedback for “Home – NAPI-RS”

Open mogill opened this issue 3 years ago • 2 comments

The README has a bullet point claiming "Zero copy data interactive between Rust & Node.js". All data is copied into/out of the JS virtual machine by definition. Rust, like every other foreign interface, cannot directly access the JS heap without risking race conditions with garbage collection. This claim should be removed or corrected.

mogill avatar Jul 28 '22 23:07 mogill

@mogill You can access ArrayBuffer/Buffer/TypedArray without data copy, and you can create them without data copy too.

Brooooooklyn avatar Jul 29 '22 03:07 Brooooooklyn

That's what the website should say. The claim as written is deceitful.

mogill avatar Jul 29 '22 17:07 mogill