You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to be able to parallelize programs like this:
let f = File::open("foo.txt").unwrap();let f = BufReader::new(f);for line in f.lines().map(|x| something_very_expensive(x)){println!("{}", line.unwrap());}
The assumption here is that something_very_expensive is expensive enough that we don't need to split the data into chunks larger than size 1.
The text was updated successfully, but these errors were encountered:
It would be nice to be able to parallelize programs like this:
The assumption here is that
something_very_expensive
is expensive enough that we don't need to split the data into chunks larger than size 1.The text was updated successfully, but these errors were encountered: