3 ms·
Do you think that BPF opcodes should be costed, too? Why or why not?
by westurner 2y ago
Do you think that BPF opcodes should be costed, too? Why or why not?
- gnabgib 2y agoAre you... asking yourself? What did you decide?
- westurner 2y agoCosting instructions leads to efficiency metrics, which makes it possible to incentivize efficiency. BPF instructions could also each have an abstract relative cost with or without real value. BPF in WASM (unfortunately without the kernel performance advantages or possible side channels) or the fwiu now-defunct eWASM might be an easier place to test the value of costed opcodes. The [e]BPF verifier does not yet rewrite according to opcode costs of candidate programs. "A look inside the BPF verifier [lwn]" https://news.ycombinator.com/item?id=41135478 https://news.ycombinator.com/item?id=41135478