197g / 197g/static-alloc

Evaluate: A struct version of allocator

未關閉
#67 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Rust
星號
62
分支
11
平均合併
3 小時 45 分鐘
30 天內合併 PR
5

描述

https://internals.rust-lang.org/t/why-bring-your-own-allocator-apis-are-not-more-popular-in-rust/14494/3?u=heroickatora

It seemed interesting to me because this has the distinct advantage of not necessitating a type parameter, which was also a 'revelation' when dealing with forward compatible ways to design markers for a type being transmutable from bytes (compare [my blog post on the topic](https://www.hardmo.de/article/2021-03-14-zst-proof-types.md#zsts-as-marker-trait-replacements)). This comes at the cost of extra layout size of all containers containing such an allocator.

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

Read the linked Rust internals forum post and the blog post about ZST marker traits. Examine the current allocator API in the static-alloc crate to understand the type parameter design. Look for container definitions to assess layout implications. The goal is to propose a struct-based allocator design that avoids type parameters but increases size.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
rust
領域
backend
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。