﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
720	about draw.rawgps.max-line-length cost of computation	anonymous	framm	"At the moment you (re-)compute the distance fairly oftern, if I understand it correctly. However, if the assumption ""if a org.openstreetmap.josm.data.gpx.WayPoint has a previous org.openstreetmap.josm.data.gpx.WayPoint, that will never change"" is true, you could cache the result of the computation in org.openstreetmap.josm.data.gpx.WayPoint. e.g.

org.openstreetmap.josm.data.gpx.WayPoint:
19 public int cachedDistance = -1;

org.openstreetmap.josm.gui.layer.GpxLayer:
323 if (maxLineLength > -1) {
324   if (trkPnt.cachedDistance <= -1)
325     trkPnt.cachedDistance = trkPnt.latlon.distance(oldWp.latlon);
326   if (trkPnt.cachedDistance > maxLineLength) continue;
327  }

"	enhancement	closed	minor		Core	latest	fixed		
