Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use lambda instead of std::bind #1243

Open
wants to merge 1 commit into
base: fb-mysql-8.0.28
Choose a base branch
from

Commits on Sep 10, 2022

  1. use lambda instead of std::bind

    std::bind(yield_condition, table) will generate a functor which size is larger than std::function's local buf, thus std::function needs to new/delete memory to store the functor.
    
    The lambda just capture one pointer(table), which size can fit into std::function's local buf thus new/delete is not needed.
    rockeet committed Sep 10, 2022
    Configuration menu
    Copy the full SHA
    9077ddf View commit details
    Browse the repository at this point in the history