{"repo":"nikolaydubina/go-binsize-treemap","free":true,"listed":false,"github":"https://github.com/nikolaydubina/go-binsize-treemap","clone":"git clone https://github.com/nikolaydubina/go-binsize-treemap.git","description":"🔍 Go binary size SVG treemap","language":"Go","stars":587,"topics":["go","golang","binary","binary-analysis","symtab","data-visualization","svg","compiler","treemap"],"license":"MIT","category":"analytics","readme_excerpt":"🔍 Go binary size SVG treemap Make treemap breakdown of Go executable binary Disclaimer Should you be worried about executable binary size? In 2022, few seconds of cat videos or even a single image is tens of MBs. Transferring them over network is not a big deal either. So, probably, you should not worry too much about it. However, this tool can still be useful in couple of cases. - You are studying compiler. - You are investigating what 3rd party dependencies are getting included in binary. - You are checking much data is getting embedded. - You are estimating how much code is getting included by packages. - You are researching which symbols included. - You are doing cgo . - You are doing treemap visualizations. I build this in my spare time as another usecase for Go treemap tooling that I built before. Enjoy! Submit issues or PRs! Examples github.com/gohugoio/hugo 62MB, this famous example of large Go project github.com/cockroachdb/cockroach 71MB, this famous db is building with C++ github.com/goccy/go-graphviz 6.5MB, this project has CGO and builds with lots of graphviz code in C github.com/zalando/skipper 36MB, is a large Go project, some builds can include C Knowledge Base What is go.itab ? This is interface related code. Refer to this article by Russ Cox. What is runtime.pclntab ? And why it is so big? As investigated Cockroach team, it is Go runtime structure for traces (reference). Past discussions in GitHub thread on why it is big and what to do about it (well, nothi","default_branch":null,"files":null,"tree":[],"storefront":"/r/nikolaydubina","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nikolaydubina/go-binsize-treemap/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}