Skip to content
Commit Detail

Commit d804efc

Author
James M Snell <jsnell@cloudflare.com> 2025-10-21 15:12:42 -0700
Parents
54f9d9e
Tree
22f53d6
Use jsg::JsUint8Array for TextEncoder::encodeInto

jsg::BufferSource adds additional overhead and complexity
that is unnecessary for this specific API. Switching to
jsg::JsUint8Array yields a significant performance boost.

Files changed

2 files changed~2 modified