Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-61547

Pass std::functions as const& to avoid copy for each invocation

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • Morpheus
    • Morpheus
    • memcached
    • None
    • 0

    Description

      We have plenty of places where we pass a std::function by value for later just calling it. Pass by const reference to avoid the copy

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            trond Trond Norbye
            trond Trond Norbye
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty