Phil Eaton 10/12/2022

A database without dynamic memory allocation

Read Original

This technical article details how the TigerBeetle database is designed to use only static memory allocation, allocating no memory after startup. It explains the benefits of this approach in Zig, including avoiding garbage collection, preventing use-after-free bugs, handling overload predictably, and improving cache performance. The post contrasts static vs. dynamic allocation and describes how fixed resource limits allow pre-calculating total memory needs.

A database without dynamic memory allocation

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week