performance hack: excluded map encoding in many cases from synchronization block, especially when doing an iteration

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7532 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 14 years ago
parent 5e186e0122
commit b2f147d28e

@ -260,7 +260,7 @@ public class MapDataMining extends MapHeap {
if ((sortfields != null) || (longaccfields != null) || (floataccfields != null)) {
Map<String, String> map;
try {
map = super.get(key);
map = super.get(key, false);
if (map != null) {
// update accumulators (subtract)
@ -382,7 +382,7 @@ public class MapDataMining extends MapHeap {
while (keyIterator.hasNext()) {
nextKey = keyIterator.next();
try {
map = get(nextKey);
map = get(nextKey, false);
} catch (final IOException e) {
Log.logWarning("MapDataMining", e.getMessage());
continue;

@ -390,7 +390,7 @@ public class MapHeap implements Map<byte[], Map<String, String>> {
return null;
}
try {
final Map<String, String> obj = get(nextKey);
final Map<String, String> obj = get(nextKey, false);
if (obj == null) throw new kelondroException("no more elements available");
return obj;
} catch (final IOException e) {

Loading…
Cancel
Save