Hi,
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
http://trac.openstreetmap.org/browser/applications/editors/josm/plugins/licensechange/src/org/openstreetmap/josm/plugins/licensechange/LicenseProblem.java
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?
Bye
Frederik
--
Frederik Ramm ## eMail [email protected] ## N49°00'09" E008°23'33"
_______________________________________________
josm-dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/josm-dev