You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
common/async: Completion uses asio::recycling_allocator by default
ceph::async::Completion<> already respects the wrapped Handler's
associated allocator, but defaults to std::allocator when there isn't
one associated
copy other asio primitives like asio::any_completion_handler<> (which
satisfies very similar use case to our Completion) by instead choosing
asio::recycling_allocator<void> as the default handler allocator
from https://www.boost.org/doc/libs/1_85_0/doc/html/boost_asio/reference/recycling_allocator.html:
> The recycling_allocator uses a simple strategy where a limited number
> of small memory blocks are cached in thread-local storage, if the
> current thread is running an io_context or is part of a thread_pool.
Signed-off-by: Casey Bodley <[email protected]>
0 commit comments