Go to file
Damian Gryski 0cea1baceb
Merge pull request #35 from marc-gr/master
Add spanish readme and first intro
2019-04-08 06:28:29 -07:00
performance-es.md Change spanish version with more suggestions 2019-04-08 10:43:16 +02:00
performance-ptbr.md Fixing typos 2018-10-10 12:28:26 -07:00
performance-zh.md Update performance-zh.md 2018-10-15 12:36:40 -07:00
performance.md add clour performance anti-patterns from mspnp 2019-04-02 23:49:38 -07:00
README-es.md Change spanish version with more suggestions 2019-04-08 10:43:16 +02:00
README.md Add spanish readme and first intro 2019-04-04 09:57:37 +02:00
TODO another optimization blog post 2019-04-02 23:45:09 -07:00

go-perfbook

Buy Me A Coffee

This document outlines best practices for writing high-performance Go code.

The first sections cover writing optimized code in any language. The later sections cover Go-specific techniques.

Multiple Language Versions

Table of Contents

  1. Writing and Optimizing Go code
  2. How to Optimize
    1. Optimization Workflow
    2. Concrete Optimization Tips
  3. Data Changes
  4. Algorithmic Changes
  5. Benchmark Inputs
  6. Program Tuning
  7. Optimization Workflow Summary
  8. Tooling
    1. Profiling
    2. Tracer
  9. Garbage Collection
  10. Runtime and Compiler
  11. Unsafe
  12. Common gotchas with the standard library
  13. Alternate Implementations
  14. CGO
  15. Advanced Techniques
  16. Assembly
  17. Optimizing an Entire Service
  18. Appendix
    1. Implementing Research Papers

Contributing

This is a work-in-progress book in Go performance.

There are different ways to contribute:

  1. add to or summarizes the resources in TODO
  2. add bullet points or new topics to be covered
  3. write prose and flesh out the sections in the book

Eventually sample programs to optimize and exercises will be needed (maybe).

Coordination will be done in the #performance channel on the Gophers slack.