mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-28 17:40:25 +00:00
fixup! Experiment. Do not push
This commit is contained in:
@@ -623,6 +623,9 @@ TaggedCache<Key, T, IsKeyCache, SharedWeakUnionPointer, SharedPointerType, Hash,
|
||||
// Allocate the current size plus a little extra, in case the cache grows while
|
||||
// allocating. Each time another allocation is needed, the extra also gets bigger until
|
||||
// it ultimately doubles the size + 1.
|
||||
|
||||
// Temporary experimental value. Make the buffer as small as possible to see if any
|
||||
// reallocations are needed. Do not merge.
|
||||
constexpr std::size_t baseShift = 63;
|
||||
auto const bufferOffset = std::min(allocationIterations, std::size_t{baseShift});
|
||||
auto const bufferShift = baseShift - bufferOffset;
|
||||
|
||||
Reference in New Issue
Block a user