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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty