[josm-dev] License Change Plugin slows down drawing
frederik at remote.org
Tue Jan 10 22:23:30 GMT 2012
whenver a license change layer is active and you have lots of
objects loaded, JOSM becomes noticeably slower.
I could use a little help here. Since many of you have tweaked JOSM's
drawing performance in the past, maybe you only need to take a quick
look at this drawing code
and you have an idea how it could be improved?
The "sliding window" of four consecutive nodes in the visit function is
there to determine whether linecaps need to be drawn or not.
Is it the trigonometry in drawSegment? (This is more or less copied from
similar code in the validation layer.) Would it perhaps make sense to
cache the buffered outline instead of computing it each time?
Frederik Ramm ## eMail frederik at remote.org ## N49°00'09" E008°23'33"
More information about the josm-dev