mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
doc: update FAQ on binary sizes
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>
This commit is contained in:
parent
48bfc8db51
commit
0cdf2ec81a
1 changed files with 5 additions and 6 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue