performance fix
This commit is contained in:
parent
d7578fee03
commit
89b60cc54c
3 changed files with 3 additions and 3 deletions
|
@ -78,7 +78,7 @@ public final class ProfileCache
|
||||||
rc.expctxWay.setAllTagsUsed();
|
rc.expctxWay.setAllTagsUsed();
|
||||||
}
|
}
|
||||||
|
|
||||||
lastProfileTimestamp = profileFile.lastModified();
|
lastProfileTimestamp = rc.profileTimestamp;
|
||||||
lastLookupTimestamp = lookupFile.lastModified();
|
lastLookupTimestamp = lookupFile.lastModified();
|
||||||
lastProfileFile = profileFile;
|
lastProfileFile = profileFile;
|
||||||
lastLookupFile = lookupFile;
|
lastLookupFile = lookupFile;
|
||||||
|
|
|
@ -288,8 +288,6 @@ public class RoutingEngine extends Thread
|
||||||
listOne.add( seedPoint );
|
listOne.add( seedPoint );
|
||||||
matchWaypointsToNodes( listOne );
|
matchWaypointsToNodes( listOne );
|
||||||
|
|
||||||
routingContext.countTraffic = true;
|
|
||||||
|
|
||||||
findTrack( "seededSearch", seedPoint, null, null, null, false );
|
findTrack( "seededSearch", seedPoint, null, null, null, false );
|
||||||
}
|
}
|
||||||
catch( IllegalArgumentException e)
|
catch( IllegalArgumentException e)
|
||||||
|
@ -309,6 +307,7 @@ public class RoutingEngine extends Thread
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
ProfileCache.releaseProfile( routingContext );
|
||||||
if ( nodesCache != null )
|
if ( nodesCache != null )
|
||||||
{
|
{
|
||||||
nodesCache.close();
|
nodesCache.close();
|
||||||
|
|
|
@ -114,6 +114,7 @@ public class BRouter
|
||||||
re = new RoutingEngine( "mytrack", "mylog", args[0], wplist, rc );
|
re = new RoutingEngine( "mytrack", "mylog", args[0], wplist, rc );
|
||||||
re.boundary = boundary;
|
re.boundary = boundary;
|
||||||
re.airDistanceCostFactor = rc.trafficDirectionFactor;
|
re.airDistanceCostFactor = rc.trafficDirectionFactor;
|
||||||
|
rc.countTraffic = true;
|
||||||
re.doSearch();
|
re.doSearch();
|
||||||
if ( re.getErrorMessage() != null )
|
if ( re.getErrorMessage() != null )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue