mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 12:37:08 +11:00
⚡ rest of log optimization
This commit is contained in:
parent
cb5d12d4dc
commit
eea9c4b566
1 changed files with 1 additions and 0 deletions
|
|
@ -82,6 +82,7 @@ std::string Log::GetLogsRange(size_t start, size_t length) noexcept
|
||||||
if (start > data.size()) { return "[]"; }
|
if (start > data.size()) { return "[]"; }
|
||||||
if (start == 0 && length == MAX_LOG_SIZE) { return log_snapshot_v2; }
|
if (start == 0 && length == MAX_LOG_SIZE) { return log_snapshot_v2; }
|
||||||
if (log_flag_v2.GetChangeState() && data.size()) { GetLogsV2(); }
|
if (log_flag_v2.GetChangeState() && data.size()) { GetLogsV2(); }
|
||||||
|
if (length > data.size()) { length = data.size(); }
|
||||||
|
|
||||||
size_t log_index_n = 0, i = 0;
|
size_t log_index_n = 0, i = 0;
|
||||||
while(i < log_snapshot_v2.size())
|
while(i < log_snapshot_v2.size())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue