mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 15:14:50 +00:00
6ac9d6876f
# Objective - The addition was being optimised out in the `for_each` loop, but not the `for` loop - Previously this meant that the `for_each` loop looked 3 times as fast - it's actually only 2 times as fast - Effectively, the addition take one unit of time, the for_each takes one unit of time, and the for loop version takes two units of time. ## Solution - `black_box` the count in each loop Note that this does not fix `for_each` being faster than `for`, unfortunately. |
||
---|---|---|
.. | ||
benches | ||
Cargo.toml |