From 1d992a472c54ef9a63364996031e3c6d2f8affe5 Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Fri, 13 Oct 2023 09:38:02 +0200 Subject: faster oplog iteration (#471) * use a CbObjectView instead of CbObject to avoid creating IOBufferCore instances * use BasicFileBuffer directly where possible * changelog --- src/zenserver/vfs/vfsimpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/zenserver/vfs/vfsimpl.cpp') diff --git a/src/zenserver/vfs/vfsimpl.cpp b/src/zenserver/vfs/vfsimpl.cpp index f74000900..8acbfba87 100644 --- a/src/zenserver/vfs/vfsimpl.cpp +++ b/src/zenserver/vfs/vfsimpl.cpp @@ -393,7 +393,7 @@ VfsServiceDataSource::PopulateDirectory(std::string NodePath, VfsTreeNode& DirNo } }; - Oplog->IterateOplog([&](CbObject Op) { + Oplog->IterateOplog([&](CbObjectView Op) { EmitFilesForDataArray(Op["packagedata"sv].AsArrayView()); EmitFilesForDataArray(Op["bulkdata"sv].AsArrayView()); }); -- cgit v1.2.3