Table of Contents

Go filesize optimization tricks

Let's assume that you want to use TinyGo, but can't - in my case, it was high GC pauses due to it using a simple mark/sweep GC designed for 64KB heaps, not multi-megabyte ones… What tricks can you employ to make your Go file smaller?

Developed as part of WebAssembly ZZT port research - OpenZoo/openzoo-go.

Development

Compilation