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/zenserver/cache/httpstructuredcache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/zenserver/cache/httpstructuredcache.cpp') diff --git a/src/zenserver/cache/httpstructuredcache.cpp b/src/zenserver/cache/httpstructuredcache.cpp index 449a43653..52e31ff40 100644 --- a/src/zenserver/cache/httpstructuredcache.cpp +++ b/src/zenserver/cache/httpstructuredcache.cpp @@ -883,7 +883,7 @@ HttpStructuredCacheService::HandleGetCacheRecord(HttpServerRequest& Request, con { if (StoreLocal) { - CompressedBuffer Chunk = Attachment->AsCompressedBinary(); + const CompressedBuffer& Chunk = Attachment->AsCompressedBinary(); WriteAttachmentBuffers.push_back(Chunk.GetCompressed().Flatten().AsIoBuffer()); WriteRawHashes.push_back(Attachment->GetHash()); } -- cgit v1.2.3