Tagged articles
22 articles
Page 1 of 1
Code Wrench
Code Wrench
Feb 19, 2026 · Backend Development

5 Go Techniques to Write Production‑Ready, Elegant Code

This article presents five practical Go techniques—using context for graceful cancellation, enriching errors with fmt.Errorf, leveraging sync.Pool to reduce GC pressure, employing pprof for performance profiling, and designing testable code with dependency injection—each illustrated with real‑world code examples and common pitfalls.

Gobest practicescontext
0 likes · 7 min read
5 Go Techniques to Write Production‑Ready, Elegant Code
Go Programming World
Go Programming World
Sep 7, 2025 · Backend Development

Mastering Go’s sync.Pool: Deep Dive into Object Pooling and Performance

This article explains how Go's sync.Pool works, shows practical usage examples, walks through its source code, and details the underlying implementation, including Put/Get methods, pinning, and garbage‑collection interaction, helping developers efficiently reuse objects in concurrent programs.

GoObject Poolingconcurrency
0 likes · 20 min read
Mastering Go’s sync.Pool: Deep Dive into Object Pooling and Performance
php Courses
php Courses
Jun 20, 2025 · Backend Development

Boost Go Performance: Reduce GC Pressure and Achieve Zero‑Copy

This article explains how Go's concurrent mark‑sweep garbage collector can become a bottleneck in high‑performance scenarios and provides practical techniques—such as using sync.Pool, avoiding unnecessary pointers, pre‑allocating memory, and applying zero‑copy and unsafe tricks—to dramatically lower GC overhead and improve overall program speed.

GoJSONZero Copy
0 likes · 8 min read
Boost Go Performance: Reduce GC Pressure and Achieve Zero‑Copy
BirdNest Tech Talk
BirdNest Tech Talk
Oct 14, 2024 · Backend Development

Why Go’s lock‑free PoolDequeue outperforms channels by 10×

This article examines Go’s internal lock‑free single‑producer multi‑consumer queues—PoolDequeue and its dynamic extension PoolChain—detailing their design, atomic operations, and benchmark comparisons that show they can be up to ten times faster than standard channels in a producer‑consumer workload.

BenchmarkGoQueue
0 likes · 13 min read
Why Go’s lock‑free PoolDequeue outperforms channels by 10×
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 22, 2024 · Backend Development

Designing a High‑Performance bytes.Buffer Pool for GWS in Go

This article explores the internal structure and growth mechanism of Go's bytes.Buffer, demonstrates how the GWS library replaces gorilla/websocket, and presents a high‑performance bytes.Buffer pool implementation using sync.Pool with power‑of‑two sizing to reduce allocations and improve concurrency in backend services.

Gobytes.Buffermemory pool
0 likes · 25 min read
Designing a High‑Performance bytes.Buffer Pool for GWS in Go
Ops Development & AI Practice
Ops Development & AI Practice
May 17, 2024 · Backend Development

Boost Go Performance: Mastering sync.Pool for Object Reuse

This article explains how Go's sync.Pool enables efficient object reuse to cut memory allocation and garbage‑collection overhead, detailing its features, basic usage, underlying mechanics, ideal scenarios, performance‑boosting examples, and important considerations for safe and effective implementation.

GoObject Poolingsync.Pool
0 likes · 8 min read
Boost Go Performance: Mastering sync.Pool for Object Reuse
Ops Development & AI Practice
Ops Development & AI Practice
Apr 15, 2024 · Backend Development

Boost Go Performance with sync.Pool: Practical Guide and UML Modeling

This article explains how Go's sync.Pool can reduce memory allocations and garbage‑collection overhead in high‑performance applications, provides step‑by‑step usage examples, demonstrates a byte‑buffer pool, shows performance benefits, and visualizes the mechanism with UML class and sequence diagrams.

GoMemory ManagementPerformance Optimization
0 likes · 7 min read
Boost Go Performance with sync.Pool: Practical Guide and UML Modeling
Yum! Tech Team
Yum! Tech Team
Apr 9, 2024 · Backend Development

Optimizing High‑Concurrency Menu Services with Go sync.Pool Object Pool

This article explains the principles of object pools, details the internal implementation of Go's sync.Pool, and demonstrates through benchmarks how using an object pool can dramatically reduce memory allocation and latency for high‑traffic menu services in a restaurant ordering application.

BenchmarkGoMemory Management
0 likes · 13 min read
Optimizing High‑Concurrency Menu Services with Go sync.Pool Object Pool
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jan 8, 2024 · Backend Development

Design and Implementation of a Go WorkQueue Library: Architecture, Interface, and Performance Analysis

This article introduces the Go WorkQueue project, detailing its motivation, overall architecture, layered design of Queue, Simple Queue, Delaying Queue, Priority Queue, and RateLimiting Queue, compares underlying data structures such as DoubleLinkedList versus slice, presents performance benchmarks, and explains memory‑fragmentation mitigation using sync.Pool.

GoQueueWorkqueue
0 likes · 12 min read
Design and Implementation of a Go WorkQueue Library: Architecture, Interface, and Performance Analysis
21CTO
21CTO
Mar 31, 2023 · Backend Development

Boost Go Performance: 6 Proven Techniques for Faster, Leaner Apps

This article presents six practical Go performance optimizations—including GOMAXPROCS tuning for Kubernetes, struct field ordering, garbage‑collection limits, zero‑copy unsafe conversions, jsoniter usage, and sync.Pool pooling—that together can dramatically lower CPU, memory, and latency in production services.

Garbage CollectionGoKubernetes
0 likes · 9 min read
Boost Go Performance: 6 Proven Techniques for Faster, Leaner Apps
Baidu Geek Talk
Baidu Geek Talk
Feb 1, 2023 · Backend Development

Practical Generic Programming Techniques in Go Language

This article explains Go 1.18 generics—type parameters, type‑set interfaces, and inference—through six practical examples including a universal sorting function, generic Append, heap, sync.Pool and sync.Map wrappers, showing how generics reduce code size, improve readability, and enhance type safety.

Generic containersGo 1.18Go generics
0 likes · 22 min read
Practical Generic Programming Techniques in Go Language
Baidu Geek Talk
Baidu Geek Talk
Apr 8, 2022 · Artificial Intelligence

Golang Object Pool for Reducing GC Pressure, FFmpeg Concurrency Control, and Paddle Static vs. Dynamic Graphs

The article explains how Go's lock‑free sync.Pool can cut garbage‑collection overhead, shows practical FFmpeg thread‑parameter tuning that balances CPU use and latency for video filtering versus encoding, and compares PaddlePaddle's static and dynamic graph modes, including debugging tips and conversion to static.

Deep LearningDynamic GraphStatic Graph
0 likes · 13 min read
Golang Object Pool for Reducing GC Pressure, FFmpeg Concurrency Control, and Paddle Static vs. Dynamic Graphs
Tencent Cloud Developer
Tencent Cloud Developer
Aug 23, 2021 · Backend Development

Performance Optimization Techniques for Go Standard Library

The article surveys a range of Go standard‑library performance tricks—from using sync.Pool and zero‑copy string/byte conversions to reducing lock contention, leveraging go:linkname, caching call‑frame data, optimizing cgo calls, employing custom epoll, SIMD, and occasional JIT—while urging profiling‑first, readability‑preserving optimizations.

Gocgosync.Pool
0 likes · 17 min read
Performance Optimization Techniques for Go Standard Library
21CTO
21CTO
Jun 16, 2021 · Backend Development

How to Process a 16 GB Log File in Seconds with Go Concurrency

This article explains how to efficiently extract time‑range logs from a massive 16 GB .txt/.log file using Go's bufio.NewReader, sync.Pool for buffer reuse, and concurrent goroutines, achieving processing times of around 25 seconds.

Log Processingconcurrencylarge files
0 likes · 9 min read
How to Process a 16 GB Log File in Seconds with Go Concurrency
MaGe Linux Operations
MaGe Linux Operations
Jun 14, 2021 · Backend Development

How to Process a 16 GB Log File in Seconds with Go

Learn how to efficiently extract timestamped logs from a massive 16 GB file in seconds using Go's buffered I/O, sync.Pool, and goroutine concurrency, with step‑by‑step code examples, performance tips, and a complete runnable program.

Log Processingconcurrencylarge files
0 likes · 10 min read
How to Process a 16 GB Log File in Seconds with Go
Xueersi Online School Tech Team
Xueersi Online School Tech Team
Mar 6, 2020 · Backend Development

Understanding Go's sync.Pool: Implementation, Usage Scenarios, and Evolution from Go 1.12 to 1.13

This article explains what a sync.Pool object pool is, when it should be used, details the Go 1.12 implementation with its internal structures and algorithms, describes the enhancements introduced in Go 1.13, and analyzes the resulting performance improvements for high‑concurrency backend applications.

Goconcurrencyobject pool
0 likes · 18 min read
Understanding Go's sync.Pool: Implementation, Usage Scenarios, and Evolution from Go 1.12 to 1.13
360 Tech Engineering
360 Tech Engineering
Jan 14, 2020 · Backend Development

Go Performance Optimization Techniques: sync.Pool, Map Key Choices, Code Generation, strings.Builder, strconv, and Slice Allocation

This article presents a collection of practical Go performance‑tuning techniques—including reuse of objects with sync.Pool, avoiding pointer‑heavy map keys, generating marshal code to bypass reflection, using strings.Builder for efficient concatenation, preferring strconv over fmt, and pre‑allocating slices—to significantly reduce allocation overhead and garbage‑collection time.

map optimizationslice allocationstrconv
0 likes · 13 min read
Go Performance Optimization Techniques: sync.Pool, Map Key Choices, Code Generation, strings.Builder, strconv, and Slice Allocation
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Jan 9, 2020 · Backend Development

Boost Go Performance: 7 Practical Optimization Techniques

This article presents seven practical Go performance optimization techniques—including using sync.Pool, avoiding pointer‑heavy maps, generating marshal code, leveraging strings.Builder, preferring strconv over fmt, pre‑allocating slices, and passing byte slices—to reduce garbage collection overhead, improve allocation efficiency, and achieve up to 97% faster execution.

BenchmarkGooptimization
0 likes · 14 min read
Boost Go Performance: 7 Practical Optimization Techniques
High Availability Architecture
High Availability Architecture
Aug 15, 2018 · Backend Development

Deep Dive into Uber's zap: Architecture, High‑Performance Design, and Lessons for Building Go Logging Libraries

This article analyzes Uber's open‑source Go logging library zap, explaining its architectural trade‑offs, performance‑boosting techniques such as object pooling, reflection avoidance, and write‑time copying, and offers practical guidance for developers who want to build high‑performance logging components in Go.

BackendGoZAP
0 likes · 18 min read
Deep Dive into Uber's zap: Architecture, High‑Performance Design, and Lessons for Building Go Logging Libraries