Tag

Object pool

0 views collected around this technical thread.

Code Ape Tech Column
Code Ape Tech Column
Dec 27, 2024 · Backend Development

Object Pool Pattern: Principles, Apache Commons Pool Implementation, and Practical Use Cases

This article explains the object pool design pattern, its working mechanism, advantages and disadvantages, and provides step‑by‑step Java code using Apache Commons Pool along with real‑world examples for web servers and game development to improve performance and resource management.

Apache Commons PoolJavaObject pool
0 likes · 14 min read
Object Pool Pattern: Principles, Apache Commons Pool Implementation, and Practical Use Cases
Code Ape Tech Column
Code Ape Tech Column
Jul 22, 2024 · Fundamentals

Object Pool Pattern: Principles, Apache Commons Pool Implementation, and Practical Use Cases

This article explains the object pool design pattern, its working mechanism, step‑by‑step Java implementation using Apache Commons Pool, advantages and disadvantages, and real‑world scenarios such as web server connection pooling and game object management, helping developers improve performance and resource utilization.

Apache Commons PoolJavaObject pool
0 likes · 13 min read
Object Pool Pattern: Principles, Apache Commons Pool Implementation, and Practical Use Cases
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.

GoMemory ManagementObject pool
0 likes · 13 min read
Optimizing High‑Concurrency Menu Services with Go sync.Pool Object Pool
FunTester
FunTester
Mar 26, 2024 · Backend Development

Building a Simple Java Object Pool with LinkedBlockingQueue and Factory Interface

This article describes how to build a lightweight custom object pool in Java using a LinkedBlockingQueue and a factory interface, detailing its design, implementation, code examples, and a test script that demonstrates borrowing, returning, and size control of pooled objects.

Factory PatternJavaLinkedBlockingQueue
0 likes · 7 min read
Building a Simple Java Object Pool with LinkedBlockingQueue and Factory Interface
Architect
Architect
Dec 1, 2023 · Backend Development

Implementing a Process Pool with Apache Commons GenericObjectPool in Java

This article explains how to use Apache Commons GenericObjectPool to implement a reusable process pool in Java, covering the underlying concepts, required dependencies, custom factory implementation, pool configuration, and example code for borrowing and returning pooled objects.

GenericObjectPoolJavaObject pool
0 likes · 9 min read
Implementing a Process Pool with Apache Commons GenericObjectPool in Java
Code Ape Tech Column
Code Ape Tech Column
Mar 9, 2023 · Fundamentals

Object Pool Pattern: Principles, Apache Commons Pool Implementation, and Practical Use Cases

This article explains the object pool design pattern, its working mechanism, step‑by‑step Java implementation using Apache Commons Pool, advantages, drawbacks, and real‑world scenarios such as web server connection pooling and game object reuse, providing complete code examples.

Apache Commons PoolJavaObject pool
0 likes · 12 min read
Object Pool Pattern: Principles, Apache Commons Pool Implementation, and Practical Use Cases
Python Programming Learning Circle
Python Programming Learning Circle
Dec 12, 2022 · Fundamentals

Pond: An Efficient Python Object Pool Library

The article introduces Pond, a high‑performance Python object‑pool library that reduces memory consumption and GC pressure by reusing objects, explains its design components, automatic eviction strategy, thread‑safe borrowing and returning mechanisms, and provides detailed usage examples with code snippets.

Memory ManagementObject poolconcurrency
0 likes · 11 min read
Pond: An Efficient Python Object Pool Library
FunTester
FunTester
Jun 7, 2022 · Backend Development

Performance Testing of Apache Commons Pool2 GenericKeyedObjectPool in Java

This article demonstrates how to implement and benchmark Apache Commons Pool2's GenericKeyedObjectPool in Java, including factory creation, pool configuration, multithreaded performance tests with and without wait times, and analysis of results highlighting scalability limitations.

Apache Commons Pool2GenericKeyedObjectPoolJava
0 likes · 6 min read
Performance Testing of Apache Commons Pool2 GenericKeyedObjectPool in Java
Sanyou's Java Diary
Sanyou's Java Diary
Jan 16, 2022 · Backend Development

Why Netty Beats Tomcat: IO Models, Zero‑Copy, Off‑Heap Memory & Object Pools

This article examines why Netty has become the preferred high‑performance server framework over Tomcat, covering Java I/O models, zero‑copy techniques, off‑heap memory usage, and Netty’s custom object‑pooling, and explains how these features enable handling thousands of concurrent connections efficiently.

IO modelJava networkingNetty
0 likes · 8 min read
Why Netty Beats Tomcat: IO Models, Zero‑Copy, Off‑Heap Memory & Object Pools
Tencent Cloud Developer
Tencent Cloud Developer
Mar 11, 2021 · Fundamentals

High-Performance Object Pool Design and Implementation

The article presents a high‑performance, thread‑safe object pool that combines thread‑local freelists, a global pool, and cache‑line‑aligned structures to reuse expensive objects, dynamically expand capacity, and achieve 50‑70% lower allocation latency than standard malloc/free and existing pool implementations.

C++Memory ManagementObject pool
0 likes · 23 min read
High-Performance Object Pool Design and Implementation
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.

GoObject poolRuntime
0 likes · 18 min read
Understanding Go's sync.Pool: Implementation, Usage Scenarios, and Evolution from Go 1.12 to 1.13
Meitu Technology
Meitu Technology
Aug 15, 2018 · Backend Development

Design and Performance Analysis of the Zap Logging Library in Go

The article examines Uber’s high‑throughput Go logging library zap, detailing its structured‑logging design, separation of concerns, copy‑on‑write filtering, extensive sync.Pool object reuse, reflection‑free type‑specific encoding, dynamic HTTP level control, and supplemental features such as a sugar API and log‑rotation, which together deliver superior performance over traditional libraries.

GoObject poolconcurrency
0 likes · 18 min read
Design and Performance Analysis of the Zap Logging Library in Go