Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize
Iterator::count
for event iterators (bevyengine#7582)
# Objective Related to bevyengine#7530. `EventReader` iterators currently use the default impl for `.count()`, which unnecessarily loops over all unread events. # Solution Add specialized impls that mark the `EventReader` as consumed and return the number of unread events.
- Loading branch information