| Crates.io | hipool |
| lib.rs | hipool |
| version | 0.3.4 |
| created_at | 2023-08-22 09:05:52.838641+00 |
| updated_at | 2025-02-07 07:28:26.085214+00 |
| description | RUST Memory Pool |
| homepage | |
| repository | https://gitcode.com/xuanwu/hipool |
| max_upload_size | |
| id | 950822 |
| size | 106,583 |
内存池提供高效的内存分配策略。适合于基于生命周期进行内存管理的业务场景.
内存池只有内存的分配接口,没有释放接口,所有内存都在内存池生命周期结束的时候统一释放.
C/C++中内存池至少存在以下两个挑战:
以上两个问题在RUST中可以在编译期间解决,安全又高效。
v0.3.4 集成hierr v0.2.4版本.
v0.3.3
v0.3.2 错误注释掉#![no_std].
Boxed/Arc/Rc: 都新增to_any/downcast/upcast接口 Arc/Rc: 新增cast_unchecked/as_ptr接口.
支持mingw,
target_os = "windows", target_env = "gnu"
GenricAlloc/Boxed/Arc/Rc的分配接口变化,消除MaybeUninit,从接口上保证安全性. Arc/Rc接口变化,新增从Boxed构建.