Re:Deep JavaScript: Theory and Techniques
by jorangreef on Wednesday June 17, 2020 @05:40PM
(#23557103)
We actually wrote the original version in C with SIMD extensions as a Node.js binding, but the JavaScript version was still twice as fast. I kid you not. You will find the reason for this in the README, it's the last bullet point under "Fast": https://github.com/ronomon/hash-table#fast
[ Parent
| on HN ]
Huh. Does that apply to WASM too or just to binding from Node?
Re:Deep JavaScript: Theory and Techniques
by jorangreef on Thursday June 18, 2020 @04:08AM
(#23560886)
I am not sure but I wouldn't think so, unless you have to serialize/deserialize or otherwise transform or inspect function call arguments in some or other way, as you need to do when binding JavaScript with C.