bytecodealliance / bytecodealliance/endive
Instance Fast Instantiation
- Vorherrschende Sprache
- Java
- Sterne
- 300
- Forks
- 21
- Ø Merge
- 2 T. 4 Std.
- Gemergte PRs (30 T.)
- 34
Beschreibung
In Wasmtime they pioneered Fast Instantiation of instances, and those are the patterns:
https://docs.wasmtime.dev/examples-fast-instantiation.html
- the Pooling Allocator: @chirino did some work in this area: https://github.com/roastedroot/proxy-wasm-java-host/blob/fdae031d94278a8e0a14dcdac7c90851a3c16f88/proxy-wasm-java-host/src/main/java/io/roastedroot/proxywasm/internal/Pool.java#L6
- COW Memory: we got reported some success in going down this path and seems like a great thing to have: https://github.com/HubSpot/boomslang/blob/fdc37eec559bafbfcd20ca10fa49344cbae5a4ce/core/src/main/java/com/hubspot/boomslang/CopyOnWriteMemory.java
Beitragsleitfaden
Rechercherichtung
Beginne mit dem im Issue verlinkten Wasmtime-Beispiel für fast-instantiation und vergleiche anschließend dessen Pooling-Allocator- und Copy-on-Write-Speicheransätze mit den referenzierten Beispielen Pool.java und CopyOnWriteMemory.java. Das Issue nennt keinen endive-Einstiegspunkt und keine Tests; für den Abschluss müssten ein konkretes Design für fast-instantiation mit messbaren Erfolgskriterien definiert und implementiert werden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java, wasm
- Bereich
- backend
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Ruhig
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100