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".
Of course though, you're right that it'll still incur a performance penalty.