Skip to content

Buffers

Xiahua Liu edited this page Jan 27, 2025 · 3 revisions

Buffer Table

PawnDB uses a ring buffer table for memory management.

This circular structure is simple and efficient for allocating and releasing buffers in a FIFO manner.

Because PawnDB aims to minimize runtime overhead, it avoids smart pointers for buffer management.

Instead, developers must manually release any unused buffers.

This approach keeps the code simple and predictable while maintaining consistent performance.

Clone this wiki locally