﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6421	[Patch] Reduce memory footprint in Node and WayPoint	anonymous	team	"The attached patch reduces the memory footprint of the Node and WayPoint classes. This is relevant, because JOSM internally creates a lot of Node instances (in particular in large datasets) and a lot of WayPoints, if GPS-Data is downloaded from the OSM server.

The patch mainly:
* makes CachedLatLon obsolete. Major drawback of current CachedLatLon: each instance keeps a reference to the current global projection
* inlines the lat/lon coordinates and the cached, projected east/north coordinates in the classes Node and WayPoint 
* properly reprojects Nodes and WayPoints, when the projection is changed 

See [https://github.com/Gubaer/josm/tree/cached-lat-lon-combined this branch with one combined commit] on GitHub, or [https://github.com/Gubaer/josm/tree/cached-lat-lon this brach] with individual smaller commits.

Attached a patch against JOSM 4114, formatted using {{{git format-patch}}}. If applied in Eclipse, you'll have to manually merge the very last entry. Just accept the update to {{{Main.setProjection(new Epsg4326());}}} and ignore the rest.



"	enhancement	closed	normal		Core	latest	invalid		
