4 ms·
Rust always passes slices as (ptr, len), and it seems to have to runtime performance impact.
by n_plus_1_acc 2y ago
Rust always passes slices as (ptr, len), and it seems to have to runtime performance impact.
- steveklabnik 2y agoWhat impact are you thinking of?
- n_plus_1_acc 2y agoGP claimed that passing arrays as (ptr,len) would have a dramatic performance impact. I used Rust as a counterexample.
- steveklabnik 2y agoOh! I think you had a typo: “to” instead of “no.” I thought you were saying there is a performance impact. Thanks for clarifying :)
- n_plus_1_acc 2y agoI didn't notice, thanks. I agreee that made it confusing.
- n_plus_1_acc 2y ago*no runtime impact