Investigate implementing iterator based approach for `getMapEntries`
- 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
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