Conversation
| let mut v = (0..10000).collect::<Vec<usize>>(); | ||
| c.bench_function("for_each_iter", |b| { | ||
| b.iter(|| { | ||
| v.iter_mut().for_each(|x| { |
There was a problem hiding this comment.
i'm suddenly realising that the point of this bench test is to bench the for_each function...
i'll add an explicit "allow" here
297312b to
a0dfea4
Compare
|
Looking at the changes, it probably won't have any impacts, but did you try running the benches before / after? |
i didn't, no. As you say, there are no changes here that could affect performance |
a0dfea4 to
6fa7c60
Compare
6fa7c60 to
0df7132
Compare
0df7132 to
e27e31a
Compare
|
@danieleades these changes rock and we overlooked them, sorry. This is about to conflict massively with #5110; can you update this PR after that? If you're too busy just let us know and I'll get someone else to tackle it. |
# Objective - #3505 marked `S-Adopt-Me` , this pr is to continue his work. ## Solution - run `cargo clippy --workspace --all-targets --all-features -- -Aclippy::type_complexity -Wclippy::doc_markdown -Wclippy::redundant_else -Wclippy::match_same_arms -Wclippy::semicolon_if_nothing_returned -Wclippy::explicit_iter_loop -Wclippy::map_flatten -Dwarnings` under benches dir. - fix issue according to suggestion.
|
This pr should be closed as #6806 has been merged. @alice-i-cecile |
# Objective - bevyengine#3505 marked `S-Adopt-Me` , this pr is to continue his work. ## Solution - run `cargo clippy --workspace --all-targets --all-features -- -Aclippy::type_complexity -Wclippy::doc_markdown -Wclippy::redundant_else -Wclippy::match_same_arms -Wclippy::semicolon_if_nothing_returned -Wclippy::explicit_iter_loop -Wclippy::map_flatten -Dwarnings` under benches dir. - fix issue according to suggestion.
# Objective - bevyengine#3505 marked `S-Adopt-Me` , this pr is to continue his work. ## Solution - run `cargo clippy --workspace --all-targets --all-features -- -Aclippy::type_complexity -Wclippy::doc_markdown -Wclippy::redundant_else -Wclippy::match_same_arms -Wclippy::semicolon_if_nothing_returned -Wclippy::explicit_iter_loop -Wclippy::map_flatten -Dwarnings` under benches dir. - fix issue according to suggestion.
i realised that my PR over at #2934 didn't include the
benches/crate. this PR covers that.