3 ms·
Had a look at the code because I also happen to be playing around with Rust. The author seems to be struggling with strings and borrowing/lifetimes like the res
by rejschaap 12y ago
Had a look at the code because I also happen to be playing around with Rust. The author seems to be struggling with strings and borrowing/lifetimes like the rest of us. Between splitting to words and tokenizing, there are probably 3 copies of the input string in memory.