Uh oh!
There was an error while loading. Please reload this page.
wasm_js: remove the separate codepath for Node.js and TLS caching - #557
Conversation
newpavlov
commented
Dec 4, 2024
daxpedda
commented
Dec 4, 2024
Ah, I thought you are going to merge #541 first. |
newpavlov
commented
Dec 4, 2024
I thought that when you wrote "Sure, I'm a fan of splitting things up." you meant that we should continue with this PR. :) |
daxpedda
left a comment
There was a problem hiding this comment.
There are also some Node.js related leftovers on the Error type.
I thought that when you wrote "Sure, I'm a fan of splitting things up." you meant that we should continue with this PR. :)
Apologies, I probably didn't read carefully enough. I understood it just as a follow-up, not a replacement.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: daxpedda <daxpedda@gmail.com>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: daxpedda <daxpedda@gmail.com>
daxpedda
commented
Dec 5, 2024
We entirely forgot the whole |
…st-random#557) Acquire of "global" objects is relatively cheap (adds ~40 ns of overhead), so it make sense to do it on each call instead of trying to cache objects in a TLS variable. Additionally, removes the separate codepath for Node.js since it fully supports the Web Crypto API since v19 (released 2022-10-18).
In rust-random#557 we forgot to port the `no_std` support from rust-random#541. This also adds running Clippy for `wasm32v1-none`.
Acquire of "global" objects is relatively cheap (adds ~40 ns of overhead), so it make sense to do it on each call instead of trying to cache objects in a TLS variable.
Additionally, removes the separate codepath for Node.js since it fully supports the Web Crypto API since v19 (released 2022-10-18).