Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Codechange: Remove std::function from Pool iteration wrapper #7911
Remove std::function from Pool iteration wrapper.
Using std::function results in very poor code generation, and significantly increased code size.
std::function can be removed entirely in the case of non-filtered iteration (the vast majority of cases), and replaced with zero-overhead template functors for filtered iteration, this results in comparable code size and performance to before the change to using PoolIterator.