endlesscheng/go-performance-code — explained in plain English
Analysis updated 2026-08-08 · repo last pushed 2020-04-29
Learn how to profile a slow Go program and find where time and memory are being wasted.
Apply object reuse patterns to reduce memory allocation overhead in high-traffic Go services.
Use copy-on-write and partitioning techniques to reduce lock contention in concurrent Go code.
Build faster data processing pipelines by applying the optimization techniques demonstrated in the code examples.
| endlesscheng/go-performance-code | 0xallam/posthog | 0xallam/search-engine | |
|---|---|---|---|
| Stars | 1 | 1 | 1 |
| Language | — | Python | C++ |
| Last pushed | 2020-04-29 | 2026-03-26 | 2023-08-23 |
| Maintenance | Dormant | Maintained | Dormant |
| Setup difficulty | easy | moderate | hard |
| Complexity | 3/5 | 3/5 | 3/5 |
| Audience | developer | pm founder | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires extracting the compressed code archive and having a working Go environment to run the demo examples.
This repository contains a presentation by Chen Yixiao, a senior engineer at Tencent, about making Go programs run faster and more efficiently. It was originally delivered at a developer meetup in Shenzhen in early 2020. The repo includes both the slide deck and a compressed file with hands-on code examples that accompany each step. The content is organized as a practical guide covering three main topics. First, it discusses when to start and stop optimizing performance, since timing matters. Then it walks through how to profile and analyze a Go program using built-in tools that measure where time and memory are being spent. Finally, it demonstrates specific optimization techniques with real code examples, such as reusing objects instead of creating new ones, using copy-on-write patterns instead of locks, and splitting shared data into partitions to reduce contention. This would be useful for any developer working in Go who wants their code to handle more work with less CPU and memory. For example, if you are building a high-traffic API or a data processing pipeline and it starts slowing down under load, the techniques here could help you identify the bottleneck and fix it without throwing more hardware at the problem. The presentation is notably hands-on rather than theoretical. The author describes it as very dry and content-dense, and each optimization technique comes with a working demo so you can see exactly how it is implemented rather than just reading about the concept.
A presentation deck with hands-on code examples teaching Go developers how to profile programs and apply optimization techniques like object reuse and lock-free patterns to improve speed and reduce resource usage.
Dormant — no commits in 2+ years (last push 2020-04-29).
No license information is provided, so default copyright restrictions apply and usage rights are unclear.
Setup difficulty is rated easy, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Don't trust strangers blindly. Verify against the repo.