bytecodealliance / bytecodealliance/wasmtime
Improve performance of `global.{set,get}` with externref
- Lingua principale
- Rust
- Stelle
- 18.6k
- Fork
- 1.8k
- Merge medio
- 1g 14h
- PR unite (30g)
- 135
Descrizione
First implemented in https://github.com/bytecodealliance/wasmtime/pull/1969 the easiest thing at the time was calling out to intrinsic functions to implement `global.{get,set}`, which means that there are no JIT fast paths for these operations. At the time of this writing there's no toolchain that uses `global.{get,set}` so we don't have a ton of motivation to make this fast, but I wanted to file this issue to make sure we don't forget about it and in case it comes up in the future!
For now it's likely safe to not worry about the performance here, but if this becomes a hot spot in the future this can be a point of coordination!
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia esaminando PR 1969 e l’implementazione di global.{get,set} per externref. Individua dove le chiamate intrinseche entrano nel JIT e determina quale lavoro sul fast-path e quali misurazioni delle prestazioni sarebbero necessari; il lavoro sarebbe considerato completato quando queste operazioni non dipenderanno più dallo slow path una volta diventate un hotspot rilevante.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- rust, wasm
- Ambito
- compilers, performance
- Tipo di issue
- Bug
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100