﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
16102	kml import is very slow compared to gpx import	GerdP	Don-vip	"I've got a kml file and a gpx file, both describe the same track.
I've noted that it takes much longer to load the kml file into JOSM (many seconds).
I think the reason is that KmlReader.java uses 
way.addNode(node);
for each single node instead of adding all nodes to a List and calling 
way.setNodes(list)
once the data is complete. 
Each addNode() triggers the complex org.openstreetmap.josm.data.osm.Way.fireNodesChanged().

Attached is a patch which might work. I have problems compiling the plugin, so I cannot test the patch.
"	enhancement	closed	normal		Plugin opendata		fixed	performance kml	
