Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

libdynamic

> 数据库
Open source

High performance utility library for C

99 stars0 likes3 views
WebsiteGitHub

About

High performance utility library for C

About

libdynamic is a single file header library designed to provide dynamic, performance optimized, low-level data structures for C.

Installation

Copy dynamic.h to your header path and compile with -flto to ensure link time optimizations.

Unit tests

The test suite requires cmocka and valgrind, and requires 100% line and branch coverage to succeed.

./configure
make check

Versioning

libdynamic follows the semantic versioning scheme.

Licensing

libdynamic is licensed under the zlib license.

Data types

Data containers

Data containers are generic data containers reducing the need for the common use case of handling separate variables for pointers and size. Data vectors also remove the need for zero-terminated strings, and help reduce strlen() runtime usage.

Strings

UTF-8 compliant strings that store an explicit string length to avoid zero termination issues.

Vectors

Vectors are dynamically resized arrays, similar to C++ std::vector, with O(1) random access, and O(1) inserts and removals at the end.

Lists

Lists are doubly linked sequence containers, similar to C++ std::list, with O(1) inserts (given a known position) and deletes.

Buffers

Buffers offers generic data containers with dynamic memory allocation. Buffers can inserted into, erased from, resized and compacted, saved to and loaded from files.

Memory pools

Memory pools improves performance when frequently allocating and deallocating objects of a predetermined size.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Ccdata-structuresevent-drivenhigh-performance

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库