A database without dynamic memory allocation
Read OriginalThis 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.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser