197g / 197g/static-alloc

Evaluate: A struct version of allocator

Đang mở
#67 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Rust
Star
62
Fork
11
Merge trung bình
3 giờ 45 phút
Pull request đã merge (30 ngày)
5

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
rust
Lĩnh vực
backend
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.