clear out vals storage after retrieving value

pull/62/head
Zlatin Balevsky 2021-06-04 12:35:21 +01:00
parent 3d30f49776
commit 84387bef8e
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 3 additions and 1 deletions

View File

@ -103,7 +103,9 @@ public abstract class SkipSpan {
int loc = binarySearch(key); int loc = binarySearch(key);
if(loc < 0) { return null; } if(loc < 0) { return null; }
loadVals(); loadVals();
return vals[loc]; Object rv = vals[loc];
vals = null;
return rv;
} }
private void pushTogether(int hole) { private void pushTogether(int hole) {