197g / 197g/static-alloc

`static-alloc`: Implement a speedy version of `alloc_zeroed`

Đang mở
#43 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement good first issue
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ả

In a special case, when the original constructor was `zeroed`, then the function does not need to perform its own zeroing of memory. This is helped by the fact that there is no reset function.

This could be implemented by a simple `bool` attribute containing the information on whether all of its remaining memory is zeroed.

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

Look at the `static-alloc` crate's source, particularly the `alloc_zeroed` function and the data structures that track memory state. The issue suggests adding a boolean attribute to track if remaining memory is already zeroed. Start by understanding how memory allocation and zeroing currently work, then modify the relevant struct and the `alloc_zeroed` implementation to skip zeroing when appropriate. Run existing tests to ensure correctness.

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ó
3/5
Thời gian dự kiến
1-2 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
45/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.