Skip to content

use ArrayBuffer->Data() when available#1002

Open
zbjornson wants to merge 1 commit intonodejs:mainfrom
zbjornson:zb/buffer-data
Open

use ArrayBuffer->Data() when available#1002
zbjornson wants to merge 1 commit intonodejs:mainfrom
zbjornson:zb/buffer-data

Conversation

@zbjornson
Copy link

@zbjornson zbjornson commented Sep 12, 2025

This is faster than accessing the BackingStore. API is available in V8 10.5+ per nodejs/node#32226 (comment).

Manually tested in Node.js v18.20 and v20.

This is faster than accessing the BackingStore.

API is available in V8 10.5+ per nodejs/node#32226 (comment).
It was backported to Node.js v18.8.0 in nodejs/node@a0c5783,
but Node.js minor versions can't be used as the basis for feature support.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants