summaryrefslogtreecommitdiff
path: root/cli/napi/js_native_api.rs
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2022-11-11 06:37:18 -0800
committerGitHub <noreply@github.com>2022-11-11 20:07:18 +0530
commit38f0b41e7d16db24c1ba7c7cc7b536f4d7e169e9 (patch)
treec8688f12f5808bd78f03c9c3ad2d078e974aa185 /cli/napi/js_native_api.rs
parent5b9620df7ac655449abd2cce5292bd4669b1f211 (diff)
perf(web): optimize single pass utf8 decoding (#16593)
- [x] Avoid copying buffers. https://encoding.spec.whatwg.org/#dom-textdecoder-decode > Implementations are strongly encouraged to use an implementation strategy that avoids this copy. When doing so they will have to make sure that changes to input do not affect future calls to [decode()](https://encoding.spec.whatwg.org/#dom-textdecoder-decode). - [x] Special op to avoid string label deserialization and parsing. (Ideally we should map labels to integers in JS) - [x] Avoid webidl `Object.assign` when options is undefined.
Diffstat (limited to 'cli/napi/js_native_api.rs')
0 files changed, 0 insertions, 0 deletions