To Pool or Not To Pool? Revisiting an Old Pattern

01/10/2018
by   Ioannis T. Christou, et al.
0

We revisit the well-known object-pool design pattern in Java. In the last decade, the pattern has attracted a lot of criticism regarding its validity when used for light-weight objects that are only meant to hold memory rather than any other resources (database connections, sockets etc.) and in fact, common opinion holds that is an anti-pattern in such cases. Nevertheless, we show through several experiments in different systems that the use of this pattern for extremely short-lived and light-weight memory objects can in fact significantly reduce the response time of high-performance multi-threaded applications, especially in memory-constrained environments. In certain multi-threaded applications where high performance is a requirement and/or memory constraints exist, we recommend therefore that the object pool pattern be given consideration and tested for possible run-time as well as memory footprint improvements.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/29/2022

Fast Efficient Fixed-Size Memory Pool: No Loops and No Overhead

In this paper, we examine a ready-to-use, robust, and computationally fa...
research
05/03/2021

A C++17 Thread Pool for High-Performance Scientific Computing

We present a modern C++17-compatible thread pool implementation, built f...
research
03/03/2015

Disaggregated and optically interconnected memory: when will it be cost effective?

The "Disaggregated Server" concept has been proposed for datacenters whe...
research
06/30/2017

Applying the Polyhedral Model to Tile Time Loops in Devito

The run time of many scientific computation applications for numerical m...
research
01/23/2019

Safely Abstracting Memory Layouts

Modern architectures require applications to make effective use of cache...
research
03/03/2021

Off-Chain Micropayment Pool for High-ThroughputBandwidth Sharing Rewards

This paper presents a layer-2 micropayment pool design which supports hi...
research
09/14/2020

Should Decorators Preserve the Component Interface?

Decorator design pattern is a well known pattern that allows dynamical a...

Please sign up or login with your details

Forgot password? Click here to reset