]> git.hungrycats.org Git - bees/commit
trace: avoid one copy in every trace function
authorZygo Blaxell <bees@furryterror.org>
Thu, 13 Feb 2025 01:10:12 +0000 (20:10 -0500)
committerZygo Blaxell <bees@furryterror.org>
Fri, 14 Feb 2025 04:59:42 +0000 (23:59 -0500)
commitae58401d53698714dcede2fc2c3879f3a11f5ade
treec524c83f8943bb92b511eb92d517b72a343d0253
parent3e7eb43b51a5107a0a80a13b3b0f9de41b281c11
trace: avoid one copy in every trace function

While investigating https://github.com/Zygo/bees/issues/282 I noticed that
we're doing at least one unnecessary extra copy of the functor in BEESTRACE.
Get rid of it with a const reference.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
src/bees-trace.cc
src/bees.h