Skip to content

Have node-internal Buffer use JsUint8Array instead of BufferSource#6326

Merged
jasnell merged 1 commit intomainfrom
jasnell/node-buffer-jsuint8array
Mar 16, 2026
Merged

Have node-internal Buffer use JsUint8Array instead of BufferSource#6326
jasnell merged 1 commit intomainfrom
jasnell/node-buffer-jsuint8array

Conversation

@jasnell
Copy link
Collaborator

@jasnell jasnell commented Mar 15, 2026

Use of BufferSource has too much overhead for the way that node-internal Buffer is used.

A precursor to converting it all to rust.

@jasnell jasnell requested review from anonrig and npaun March 15, 2026 21:34
@jasnell jasnell requested review from a team as code owners March 15, 2026 21:34
ask-bonk[bot]

This comment was marked as resolved.

@ask-bonk

This comment was marked as outdated.

@jasnell jasnell force-pushed the jasnell/node-buffer-jsuint8array branch from 551abeb to 5a67f82 Compare March 15, 2026 21:57
@jasnell jasnell changed the title Having node-internal Buffer use JsUint8Array instead of BufferSource Have node-internal Buffer use JsUint8Array instead of BufferSource Mar 15, 2026
@jasnell jasnell force-pushed the jasnell/node-buffer-jsuint8array branch 2 times, most recently from 02ce8ea to 3f2ac4d Compare March 15, 2026 22:11
@jasnell
Copy link
Collaborator Author

jasnell commented Mar 15, 2026

/bigbonk update your review

ask-bonk[bot]

This comment was marked as resolved.

@ask-bonk

This comment was marked as resolved.

@jasnell jasnell force-pushed the jasnell/node-buffer-jsuint8array branch from 3f2ac4d to 73265fb Compare March 15, 2026 22:44
@anonrig
Copy link
Member

anonrig commented Mar 16, 2026

/bigbonk roast this pr

ask-bonk[bot]

This comment was marked as resolved.

@ask-bonk

This comment was marked as resolved.

@jasnell jasnell requested review from a team and danlapid March 16, 2026 02:45
Use of `BufferSource` has too much overhead for the way that
node-internal `Buffer` is used.
@jasnell jasnell force-pushed the jasnell/node-buffer-jsuint8array branch from 73265fb to 581dbcb Compare March 16, 2026 14:22
@jasnell jasnell enabled auto-merge March 16, 2026 14:23
@jasnell jasnell merged commit 92a4e57 into main Mar 16, 2026
22 of 24 checks passed
@jasnell jasnell deleted the jasnell/node-buffer-jsuint8array branch March 16, 2026 17:38
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