public void clearForRead() {
disabled = !conf.isShareReferences();
if ( !disabled ) {
if ( idToObject.mKeys.length > 6 * idToObject.size() && idToObject.size() > 0 ) {
// avoid cleaning huge mem areas after having written a large object
idToObject = new FSTInt2ObjectMap(idToObject.size());
} else {
idToObject.clear();
}
if ( highestPos > 0 )
FSTUtil.clear(reuseMap,highestPos);