Re:What a one line change did to the Chrome sandbox
by throwaway483284 on Thursday April 23, 2020 @07:58AM
(#22955001)
I don't think SIMD support will help here, a lot of encoder/decoder code base is hand written ASM.
[ Parent
| on HN ]
Re:What a one line change did to the Chrome sandbox
by roblabla on Thursday April 23, 2020 @08:27AM
(#22955192)
There's no reason to think it won't help - the encoder/decoder code base could be written in WASM directly to ensure it uses the SIMD instructions, and those will hopefully map closely to the machine SIMD instructions.
Of course though, you're right that it'll still incur a performance penalty.
Re:What a one line change did to the Chrome sandbox
by londons_explore on Thursday April 23, 2020 @10:43AM
(#22956554)
Someone needs to make a dev environment where someone can write WASM and see realtime the generated assembly instructions, together with the number of cycles to execute.
That way, the developer can tweak the input to the compiler to get exactly the sequence of instructions they wanted.
They can also hand write the output assembly, and put a patch in to the compiler saying "this generated assembly is faster that what you generated, so please generate this in the next version".