]> Cypherpunks repositories - gostls13.git/commitdiff
doc: update FAQ on binary sizes
authorAlberto Donizetti <alb.donizetti@gmail.com>
Mon, 30 Apr 2018 10:30:58 +0000 (12:30 +0200)
committerAlberto Donizetti <alb.donizetti@gmail.com>
Mon, 30 Apr 2018 16:11:15 +0000 (16:11 +0000)
In the binary sizes FAQ, the approximate size of a Go hello world
binary was said to be 1.5MB (it was about 1.6MB on go1.7 on
linux/amd64). Sadly, this is no longer true. A Go1.10 hello world is
2.0MB, and in 1.11 it'll be about 2.5MB.

Just say "a couple megabytes" to stop this dance.

Change-Id: Ib4dc13a47ccd51327c1a9d90d4116f79597513a4
Reviewed-on: https://go-review.googlesource.com/110069
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
doc/go_faq.html

index a6d79b0823afd539556f0b401604905ca69c8a75..3893b82d7efb569320be21a919a90fb8f3da8aa8 100644 (file)
@@ -1861,12 +1861,11 @@ type checks, reflection, and even panic-time stack traces.
 </p>
 
 <p>
-A simple C "hello, world" program compiled and linked statically using gcc
-on Linux is around 750 kB,
-including an implementation of <code>printf</code>.
-An equivalent Go program using <code>fmt.Printf</code>
-is around 1.5 MB, but
-that includes more powerful run-time support and type information.
+A simple C "hello, world" program compiled and linked statically using
+gcc on Linux is around 750 kB, including an implementation of
+<code>printf</code>. An equivalent Go program using
+<code>fmt.Printf</code> weighs a couple megabytes, but that includes
+more powerful run-time support, and type and debugging information.
 </p>
 
 <h3 id="unused_variables_and_imports">