3 ms·
I didn't check the codegen or anything, but: 1) Yes, almost certainly zero-cost. 2) This isn't a hot part of the program. See also: https://old.reddit.com/r/r
by burntsushi 6y ago
I didn't check the codegen or anything, but:
1) Yes, almost certainly zero-cost.
2) This isn't a hot part of the program.
See also: https://old.reddit.com/r/rust/comments/m5ix0s/performance_comparison_counting_words_in_python/gr099cg/ https://old.reddit.com/r/rust/comments/m5ix0s/performance_co...