From 8ce1dc72cce381b2adae256504331f2e8893f262 Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Thu, 30 May 2024 14:44:34 +0200 Subject: cache optimizations (#88) * message formatting optimizations * bump iostorecompression small value threshold to 1MB --- src/zencore/compactbinarypackage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/zencore/compactbinarypackage.cpp') diff --git a/src/zencore/compactbinarypackage.cpp b/src/zencore/compactbinarypackage.cpp index 4d4e0951e..0117b326e 100644 --- a/src/zencore/compactbinarypackage.cpp +++ b/src/zencore/compactbinarypackage.cpp @@ -261,7 +261,7 @@ CbAttachment::GetHash() const return Hash; } -CompositeBuffer +const CompositeBuffer& CbAttachment::AsCompositeBinary() const { if (const CompositeBuffer* BinValue = std::get_if(&Value)) @@ -283,7 +283,7 @@ CbAttachment::AsBinary() const return {}; } -CompressedBuffer +const CompressedBuffer& CbAttachment::AsCompressedBinary() const { if (const CompressedBuffer* CompValue = std::get_if(&Value)) -- cgit v1.2.3