﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
11929	Low JOSM performance when mapillary layer is active with large sequence	wiktorn	nokutu	"When I download larger area and work with Mapillary layer I observe lower performance of scrolling/panning and drawing. After short profiling session I observed a lot of calls to:
`MapillaryImage.equals(...)`

I identified following source of this calls:
*while painting the layer there is iteration over sequences. But `MapillarySequence.next(...)` calls `ArrayList.contains(...)`, which is O(n), as well as `ArrayList.indexOf(...)`, which is also O(n), and in the end - calls `MapillaryImage.equals(...)` * n (length of sequence)

My guess is, that if you'd have constant-time `MapillaryAbstractImage.next(...)` this would improve performance dramatically.

 "	defect	closed	normal		Plugin mapillary	latest	fixed	performance	
