smoldot icon indicating copy to clipboard operation
smoldot copied to clipboard

Zero the memory of the Wasm VM

Open tomaka opened this issue 4 years ago • 2 comments

Fix #946

Unfortunately the full node syncing speed is now abysmal. Need to figure out what happens.

tomaka avatar Jun 16 '21 08:06 tomaka

Apparently Substrate restores what's below __heap_pages instead of zero-ing what's above.

tomaka avatar Jun 16 '21 08:06 tomaka

For context I haven't merged this, because the last time I tried these changes considerably slow down the blocks verification speed of the full node (something like 50 times slower if I remember correctly), which means that I'm probably missing something that Substrate does or doesn't do.

tomaka avatar Feb 24 '22 10:02 tomaka