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

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

Components

Affects versions

Fix versions

Labels

Environment

None

Release Notes Description

None

Activity

CB robot February 25, 2025 at 2:04 AM

Build couchbase-columnar-1.2.0-1009 contains kv_engine commit 0fdcaaa with commit message:
MB-61547: pass function arguments as const&

CB robot February 25, 2025 at 1:31 AM

Build couchbase-columnar-1.2.0-1009 contains kv_engine commit 0fdcaaa with commit message:
MB-61547: pass function arguments as const&

CB robot February 24, 2025 at 9:59 PM

Build couchbase-columnar-1.2.0-1009 contains kv_engine commit 0fdcaaa with commit message:
MB-61547: pass function arguments as const&

CB robot February 24, 2025 at 8:41 PM

Build couchbase-columnar-1.2.0-1009 contains kv_engine commit 0fdcaaa with commit message:
MB-61547: pass function arguments as const&

CB robot April 21, 2024 at 1:33 AM

Build couchbase-server-8.0.0-1618 contains kv_engine commit 0fdcaaa with commit message:
: pass function arguments as const&

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created April 17, 2024 at 12:56 PM
Updated February 25, 2025 at 2:04 AM
Resolved April 24, 2024 at 2:26 PM
Instabug