Hacker News new | ask | show | jobs
by Philip-J-Fry 1378 days ago
I was thinking the same. They said a Go precompiled version was faster, but was 200MB. Which I don't understand.

200MB of pages and assets, sure. Code? No. If you compile it into the binary then the storage is no worse than having a small binary and all the resources separate.

Taking a statically generated site and returning the raw bytes is 100% faster. The author said so themselves.

1 comments

Technically with go:embed you could trivially make a blog server that is just a 200MB binary with all of it embedded.

If you did it that way, now all your content is basically mmaped into the memory which means (probably) less syscalls.

Soo it might've shaved half a microsecond maybe ?