mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
Performance test
Signed-off-by: JCW <a1q123456@users.noreply.github.com>
This commit is contained in:
@@ -202,7 +202,7 @@ Logs::write(
|
||||
}
|
||||
|
||||
// Add to batch buffer for file output
|
||||
if (false) {
|
||||
{
|
||||
std::lock_guard lock(batchMutex_);
|
||||
|
||||
// Console output still immediate for responsiveness
|
||||
@@ -221,6 +221,8 @@ Logs::write(
|
||||
std::copy(result.begin(), result.end(), writeBuffer_.begin());
|
||||
writeBuffer_[result.size()] = '\n';
|
||||
|
||||
return;
|
||||
|
||||
// Update spans: expand read buffer, shrink write buffer
|
||||
size_t totalUsed = readBuffer_.size() + logSize;
|
||||
readBuffer_ = std::span<char>(batchBuffer_.data(), totalUsed);
|
||||
|
||||
Reference in New Issue
Block a user