Memory Footprint: UUID Conversion
Saving RAM by clearing data after it's no longer needed by UUID conversion code.
This commit is contained in:
parent
3ffb02e51e
commit
e7b649810e
|
|
@ -109,6 +109,12 @@ public abstract class DataStore
|
|||
this.saveClaim(claim);
|
||||
}
|
||||
|
||||
//clean up any UUID conversion work
|
||||
if(UUIDFetcher.lookupCache != null)
|
||||
{
|
||||
UUIDFetcher.lookupCache.clear();
|
||||
}
|
||||
|
||||
GriefPrevention.AddLogEntry("Update finished.");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ class UUIDFetcher {
|
|||
private final boolean rateLimiting;
|
||||
|
||||
//cache for username -> uuid lookups
|
||||
private static HashMap<String, UUID> lookupCache;
|
||||
static HashMap<String, UUID> lookupCache;
|
||||
|
||||
public UUIDFetcher(List<String> names, boolean rateLimiting) {
|
||||
this.names = names;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user