News for hackers. Stuff that matters.
Re:C/C++ vs. Rust Performance by krizhanovsky on Wednesday November 04, 2020 @02:06PM (#24991984)
The benchmarks https://github.com/ncm/computed-goto/blob/master/benchmarks/... benchmark is not applicable to this discussion because it compares _too_ small state machines. I reference my talk and presentation once more: http://www.tempesta-tech.com/research/http_str.pdf - slide 23 discusses that the goto FSM makes sense for _hundreds_ of states.
Re:C/C++ vs. Rust Performance by ncmncm on Wednesday November 04, 2020 @11:17PM (#24995619)
The number of states is irrelevant. An optimized tail call is achieved with, exactly, a single branch instruction.