0xMiden / 0xMiden/web-sdk

Investigate implementing iterator based approach for `getMapEntries`

Offen
#97 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
1
Forks
21
Ø Merge
12 Std. 14 Min.
Gemergte PRs (30 T.)
41

Beschreibung

In https://github.com/0xMiden/miden-client/pull/1323, an approach was based for retrieving all entries in a specific storage map. The getter collects into a vector every time.

This will be fine for most storage maps but copying big maps into JS might not be ideal. We could investigate if there is a way to implement an iterator-based approach for this function (and any other that works similarly in the web client right now).

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Examine the `getMapEntries` function and similar functions in the web client codebase, likely in storage-related modules. Review the linked pull request #1323 to understand the current vector-based approach. Investigate JavaScript/TypeScript iterator protocols and patterns for streaming large datasets without full in-memory copies. Determine if the underlying storage API supports incremental retrieval.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript, typescript
Bereich
api, backend
Issue-Typ
Refactoring
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 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.