You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be best to have the op_base64_decode and _encode do all the work on Rust side?
ie. op_base64_decode would return a String so that JS side doesn't have to do all the Uint8Array to Array to string mapping and joining.
op_base64_encode would take a String, check it for invalid characters and return an error if necessary (can ops directly return-throw a DomException? I see a lot of DomExceptionSomething in Rust code so I presume it's okay), convert to u8 slice and pass to base64::encode_config?
❯ ./target/release/deno run --unstable -A ./cli/bench/deno_common.js
b64_rt_long: n = 100, dt = 0.626s, r = 160/s, t = 6260000ns/op
b64_rt_short: n = 1000000, dt = 0.451s, r = 2217295/s, t = 451ns/op
https://twitter.com/jarredsumner/status/1499715417773789185
The text was updated successfully, but these errors were encountered: