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

mimalloc

> 编程语言
开源

mimalloc是一个紧凑的通用分配器,性能优异.

13.2K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

mimalloc是一个紧凑的通用分配器,性能优异.

mimalloc   mimalloc (发音为"me-malloc")是一款具有出色性能特征的通用分配器. 最初由Daan Leijen为科克语和Lean语的跑时系统所开发. 最近发布:v3.5.1(2026-09-01)推荐. 最新v2发布:v2.5.1 (2026-09-01) 平稳,遗产. 最新v1发布:v1.15.1 (2026-09-01) 遗产. mimalloc是maloc的倒置替代,可以在不修改代码的情况下用于其他程序,例如,在动态链接的ELF基于系统(Linux,BSD等)上,您可以将其作为: LDPRELOAD=/usr/lib/libmimalloc.so myprogram. 它还包括了动态地覆盖Windows中默认分配符的方法. 设计的显著方面包括: - 小而一致:库中使用简单而一致的数据结构的LOC约为10k. 这使得它非常适合融入并适应其他项目. 为鲁..

核心特点

  • •__small and consistent__: the library is about 10k LOC using simple and
  • •__free list sharding__: instead of one big free list (per size class) we have
  • •__free list multi-sharding__: the big idea! Not only do we shard the free list
  • •__eager page purging__: when a "page" becomes empty (with increased chance
  • •__secure__: _mimalloc_ can be built in secure mode, adding guard pages,
  • •__first-class heaps__: efficiently create and use multiple heaps to allocate across different regions.
  • •__bounded__: it does not suffer from _blowup_ \[1\], has bounded worst-case allocation
  • •__fast__: In our benchmarks (see below),
  • •__v3__: recommended: simplifies the lock-free design of previous versions and improves sharing of
  • •__v2__: stable legacy mimalloc version. Uses thread-local segments to reduce fragmentation. (release tags: v2.x, development branch dev2 and main)

> 标签

C

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

> 工具信息

发布日期2026年8月1日
最后更新2026年9月9日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言