aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/include
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2023-10-04 14:37:49 +0200
committerGitHub <[email protected]>2023-10-04 14:37:49 +0200
commit387b6d99e6ef3958a6fd78b22c48bb8a85b53bda (patch)
treefd6a5e07e9785a10606f35f92b2f205af87fff1f /src/zencore/include
parentadded CHANGELOG.md note for websocket removal (diff)
downloadzen-387b6d99e6ef3958a6fd78b22c48bb8a85b53bda.tar.xz
zen-387b6d99e6ef3958a6fd78b22c48bb8a85b53bda.zip
refactor comapactcas index (#443)
- Bugfix: Fix scrub messing up payload and access time in disk cache bucket when compacting index - Improvement: Split up disk cache bucket index into hash lookup and payload array to improve performance - Improvement: Reserve space up front for compact binary output when saving cache bucket manifest to improve performance
Diffstat (limited to 'src/zencore/include')
-rw-r--r--src/zencore/include/zencore/compactbinarybuilder.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/zencore/include/zencore/compactbinarybuilder.h b/src/zencore/include/zencore/compactbinarybuilder.h
index 53f00ae4e..e8d981fcb 100644
--- a/src/zencore/include/zencore/compactbinarybuilder.h
+++ b/src/zencore/include/zencore/compactbinarybuilder.h
@@ -441,6 +441,7 @@ private:
class CbObjectWriter : public CbWriter
{
public:
+ explicit CbObjectWriter(int64_t InitialSize) : CbWriter(InitialSize) { BeginObject(); }
CbObjectWriter() { BeginObject(); }
ZENCORE_API CbObject Save()