4 ms·
Thanks for the advice. I use Go on the backend, but couldn't resist some "fanciness". I embed all the html/css/js/images files into a binary and serve everythin
by andreygrehov 5y ago
Thanks for the advice. I use Go on the backend, but couldn't resist some "fanciness". I embed all the html/css/js/images files into a binary and serve everything from memory. Zero disc reads. It's blazing fast. Also, deploying the entire website becomes painless – scp the binary and restart the process.
- selcuka 5y agoYou can still benefit from something like https://github.com/instantpage/instant.page https://github.com/instantpage/instant.page as a poor man's replacement of Turbo(links).
- zeepzeep 5y ago> I embed all the html/css/js/images files into a binary and serve everything from memory. Zero disc reads. It's blazing fast. I do that too. A friend "stole" that idea from the tour of go, I really like it. Just go generate before building to make add static files, go build, done. 1 binary, it just works.
- psd1 5y agoSurely modern OSes cache files as memory-mapped files...? Given the availability of physical memory?