gear icon indicating copy to clipboard operation
gear copied to clipboard

Access gas counter global variable instead of calling `gr_gas_available` to control stack/resucsion depth in `wasm-gen`

Open techraed opened this issue 2 years ago • 0 comments

This #3391 uses gr_gas_available syscall to get info about current gas consumption to decide whether we should return from that recursion/loop block or not. However, gr_gas_available costs more than reading global variable.

techraed avatar Nov 01 '23 12:11 techraed