diff options
author | Andreu Botella <abb@randomunok.com> | 2021-07-02 12:11:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-02 12:11:20 +0200 |
commit | 7b0375fae7578c0c7e4f4229e59ad5046ecf75ab (patch) | |
tree | 62ea39be6fb939490d09751667b96280a7be89d8 /core/02_error.js | |
parent | 4bc8fe71db89d3c430bc615815a15b7ee04476c7 (diff) |
perf: speed up TextEncoder.prototype.encodeInto() (#11219)
The current implementation of op_encoding_encode_into UTF-8 encodes each
individual code point in the input string into the output buffer. But after the
ops binding, the input is a Rust String, so the UTF-8 bytes can simply be copied
to the output. This should improve this API's performance.
Diffstat (limited to 'core/02_error.js')
0 files changed, 0 insertions, 0 deletions