mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 03:26:01 +00:00
Enlarge the humanAccountID cache
This commit is contained in:
committed by
Vinnie Falco
parent
88bd5b12a4
commit
3e218c494d
@@ -327,7 +327,7 @@ std::string RippleAddress::humanAccountID () const
|
|||||||
// here, switch back and forth keep one of them full and clear the
|
// here, switch back and forth keep one of them full and clear the
|
||||||
// other on a swap - but always check both maps for cache hits.
|
// other on a swap - but always check both maps for cache hits.
|
||||||
//
|
//
|
||||||
if (rncMap.size () > 10000)
|
if (rncMap.size () > 250000)
|
||||||
rncMap.clear ();
|
rncMap.clear ();
|
||||||
|
|
||||||
return rncMap[vchData] = ToString ();
|
return rncMap[vchData] = ToString ();
|
||||||
|
|||||||
Reference in New Issue
Block a user