197g / 197g/static-alloc

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

Offen
#43 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement good first issue
Vorherrschende Sprache
Rust
Sterne
62
Forks
11
Ø Merge
3 Std. 45 Min.
Gemergte PRs (30 T.)
5

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
rust
Bereich
backend
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.