performance fix

This commit is contained in:
Arndt Brenschede 2018-09-13 13:07:16 +02:00
parent d7578fee03
commit 89b60cc54c
3 changed files with 3 additions and 3 deletions

View file

@ -78,7 +78,7 @@ public final class ProfileCache
rc.expctxWay.setAllTagsUsed();
}
lastProfileTimestamp = profileFile.lastModified();
lastProfileTimestamp = rc.profileTimestamp;
lastLookupTimestamp = lookupFile.lastModified();
lastProfileFile = profileFile;
lastLookupFile = lookupFile;

View file

@ -288,8 +288,6 @@ public class RoutingEngine extends Thread
listOne.add( seedPoint );
matchWaypointsToNodes( listOne );
routingContext.countTraffic = true;
findTrack( "seededSearch", seedPoint, null, null, null, false );
}
catch( IllegalArgumentException e)
@ -309,6 +307,7 @@ public class RoutingEngine extends Thread
}
finally
{
ProfileCache.releaseProfile( routingContext );
if ( nodesCache != null )
{
nodesCache.close();

View file

@ -114,6 +114,7 @@ public class BRouter
re = new RoutingEngine( "mytrack", "mylog", args[0], wplist, rc );
re.boundary = boundary;
re.airDistanceCostFactor = rc.trafficDirectionFactor;
rc.countTraffic = true;
re.doSearch();
if ( re.getErrorMessage() != null )
{