百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
L

libdynamic

> 数据库
开源

适用于 C 的高性能实用程序库

99 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

适用于 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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Ccdata-structuresevent-drivenhigh-performance

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类数据库
定价开源

> 相关工具

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