From 9cf649a4246c5b8563e6f6aee7b89731cfaf6ee3 Mon Sep 17 00:00:00 2001 From: Giovanni Petrantoni <7008900+sinkingsugar@users.noreply.github.com> Date: Tue, 8 Oct 2024 18:14:03 +0800 Subject: [PATCH] refactor(crdt): conditionally compile print_data function Wrap print_data function in #ifndef NDEBUG to exclude it from release builds, optimizing performance while retaining debugging capabilities in debug mode. --- crdt.hpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/crdt.hpp b/crdt.hpp index 114e2c0..f8155a6 100644 --- a/crdt.hpp +++ b/crdt.hpp @@ -642,9 +642,10 @@ class CRDT : public std::enable_shared_from_this