From 09911d5496e5cdccb32f4cc61ea197c014225b02 Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Tue, 6 Jul 2021 20:28:37 -0700 Subject: [PATCH] :construction::racehorse: preparing to use FBE, in the meantime its 99% faster --- include/log.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/log.h b/include/log.h index 001fccc..e742c92 100644 --- a/include/log.h +++ b/include/log.h @@ -10,16 +10,17 @@ struct Log { private: ChangeFlag log_flag; - Json::Value log_snapshot; + std::string log_snapshot; public: + Log() noexcept; #if MAX_LOG_SIZE == 1 Transaction data; #else std::vector data; #endif - const Json::Value &GetLog() noexcept; + const std::string &GetLog() noexcept; void AddTrans(Transaction &&t) noexcept; Json::Value Serialize() const; // to be removed later };