- From: Henri Sivonen <notifications@github.com>
- Date: Mon, 23 May 2022 04:09:39 -0700
- To: whatwg/encoding <encoding@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 23 May 2022 11:09:51 UTC
> > since the WebIDL layer is a perf bottle neck > > @hsivonen How so? In Deno we have an optimized path in our WebIDL bindings for this specific API that bypasses the slow USVString conversion completely. This should be possible in other implementations too. Gecko doesn't actually use `USVString` in `TextEncoder` WebIDL, either. However, the WebIDL layer still has enough overhead that e.g. `wasm-bindgen` [conditionally avoids](https://github.com/rustwasm/wasm-bindgen/blob/57b1a57c5e221d5d66a34df9e6152c45de8da561/crates/cli-support/src/js/mod.rs#L1451-L1452) going through the WebIDL layer. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/encoding/issues/267#issuecomment-1134534756 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/encoding/issues/267/1134534756@github.com>
Received on Monday, 23 May 2022 11:09:51 UTC