tag/Id3Load, ...: use std::make_unique_for_overwrite()

Don't zero-initialize the buffers.  This removes some useless
overhead.
This commit is contained in:
Max Kellermann
2025-01-29 11:52:35 +01:00
parent a5da7fd51a
commit 57e7fb3f62
10 changed files with 13 additions and 13 deletions

View File

@@ -17,7 +17,7 @@ ReadOperation::Start(Queue &queue, FileDescriptor fd, off_t offset,
handler = &_handler;
buffer = std::make_unique<std::byte[]>(size);
buffer = std::make_unique_for_overwrite<std::byte[]>(size);
auto &s = queue.RequireSubmitEntry();