sandstorm icon indicating copy to clipboard operation
sandstorm copied to clipboard

Possible optimization: convert app directories to squashfs images

Open zenhack opened this issue 4 years ago • 3 comments

Startup time is a problem for many applications, and in many cases some of the problem seems to be excessive disk io. For example, Davros saw a 10x improvement in startup time with a cold cache on my sandstorm box when @mnutt minified the nodejs server.

I'm wondering if we could get a similar improvement for many other apps by converting the app directories to squashfs images, and just mounting those directly.

zenhack avatar Jun 15 '21 18:06 zenhack

(More specifically than just disk IO, accessing many small files)

zenhack avatar Jun 15 '21 18:06 zenhack

Would it respond differently in any way apps might access it? Would it break existing applications?

ocdtrekkie avatar Jun 15 '21 18:06 ocdtrekkie

Quoting Jacob Weisz (2021-06-15 14:38:41)

Would it respond differently in any way apps might access it? Would it break existing applications?

I don't think so.

zenhack avatar Jun 15 '21 18:06 zenhack