removed some old stuff, added profiler, minor performance tuning

This commit is contained in:
Arndt 2016-08-20 18:53:50 +02:00
parent 42e9ddbdd1
commit f70dd3c3ac
22 changed files with 234 additions and 802 deletions

View file

@ -198,7 +198,7 @@ public class GraphLoader extends MapCreatorBase
{
if ( link.isWayLink() )
{
wayCtx.evaluate( false, link.descriptionBitmap, null );
wayCtx.evaluate( false, link.descriptionBitmap );
if ( wayCtx.getCostfactor() < 10000.f )
{
return true;

View file

@ -347,7 +347,7 @@ System.out.println( "*** finishedOffsets = " + finishedOffsets );
else if ( link.isWayLink() )
{
// get costfactor
rc.expctxWay.evaluate( link.isReverse( currentNode ), link.descriptionBitmap, null );
rc.expctxWay.evaluate( link.isReverse( currentNode ), link.descriptionBitmap );
// *** penalty for distance
float costfactor = rc.expctxWay.getCostfactor();
@ -366,7 +366,7 @@ System.out.println( "*** finishedOffsets = " + finishedOffsets );
if ( node.getNodeDecsription() != null )
{
rc.expctxNode.evaluate( rc.expctxWay.getNodeAccessGranted() != 0., node.getNodeDecsription(), null );
rc.expctxNode.evaluate( rc.expctxWay.getNodeAccessGranted() != 0., node.getNodeDecsription() );
float initialcost = rc.expctxNode.getInitialcost();
if ( initialcost >= 1000000. )
{