webvm icon indicating copy to clipboard operation
webvm copied to clipboard

loading fs cache is very slow

Open dominictarr opened this issue 4 years ago • 0 comments

I ran the recommended python example and was surprised to see how much faster it ran the second time. then I say that there was node js examples, so I tried running node, and well, it's been trying to load in another tab while I've been writing this issue and it's still not there.

I opened the dev tools and on the network tab I saw it's doing a bunch of xhr's like https://disks.leaningtech.com/webvm_20220131.ext2?s=796655616&e=796786687 it seems to do them one at a time... (okay node has opened now) I can see this is part of the file system... each block is 128kb, which isn't big, but there is certainly a delay between each block.

To be useful this needs to be much faster. It seems to me that the high latency means a much larger block size (and thus fewer requests) would be much faster.

dominictarr avatar Feb 02 '22 15:02 dominictarr