Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
globwalker: avoid spurious allocations in iterator
This tweaks the `GlobWalker` iterator logic in order to avoid a spurious allocation for each processed directory entry (including ignored ones). Verified by running the current testsuite under `heaptrack` and observing allocations stats: ``` $ heaptrack target/debug/deps/globwalk-baseline [...] heaptrack stats: allocations: 7176 [...] $ heaptrack target/debug/deps/globwalk-patched [...] heaptrack stats: allocations: 7081 [...] ```
- Loading branch information