197g / 197g/static-alloc

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

Aberta
#43 0 comentários 0 reações 0 responsáveis Ver no GitHub
enhancement good first issue
Linguagem predominante
Rust
Estrelas
62
Forks
11
Merge médio
3h 45min
PRs com merge (30d)
5

Descrição

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.

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
rust
Domínio
backend
Tipo de issue
Funcionalidade
Dificuldade
3/5
Tempo estimado
1-2 dias
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
45/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.