diff options
| author | Stefan Boberg <[email protected]> | 2021-05-13 12:01:18 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-05-13 12:01:18 +0200 |
| commit | 0b8280d4fcbf3a65997c3cc86cf14f5f7c44b7fe (patch) | |
| tree | 5ce29b79d0636e8e127c68c9fb9928b67759d1ac /zenserver/projectstore.cpp | |
| parent | clang-format (diff) | |
| download | zen-0b8280d4fcbf3a65997c3cc86cf14f5f7c44b7fe.tar.xz zen-0b8280d4fcbf3a65997c3cc86cf14f5f7c44b7fe.zip | |
Made SharedBuffer/UniqueBuffer share guts with IoBuffer
This enables way more efficient marshaling of compact binary objects and attachments
Diffstat (limited to 'zenserver/projectstore.cpp')
| -rw-r--r-- | zenserver/projectstore.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/zenserver/projectstore.cpp b/zenserver/projectstore.cpp index cd85e6d22..cb6be69e8 100644 --- a/zenserver/projectstore.cpp +++ b/zenserver/projectstore.cpp @@ -1062,8 +1062,7 @@ HttpProjectService::HttpProjectService(CasStore& Store, ProjectStore* Projects) if (IoBuffer Data = IoBufferBuilder::MakeFromFile(AttachmentPath.native().c_str())) { - // TODO: this should use the IoBuffer directly to avoid mapping the chunk into memory - return SharedBuffer::Clone(MemoryView(Data.Data(), Data.Size())); + return SharedBuffer(std::move(Data)); } else { |