[josm-dev] Optimizations for larger data sets

Petr Nejedly Petr.Nejedly at Sun.COM
Fri Dec 14 18:00:30 GMT 2007


So let me start sending patches. Something small first:
>    1. Paint arrow on selection even when arrows are disabled.
>    6. Reasonable offscreen filtering in SimplePaintVisitor, limit usage
>       of floats during painting, limit doing the same transformation
>       twice, don't paint too small objects.

The attached patch implements [1] - i.e. paint an arrow for selected nodes
even if arrows are turned off. Turning off arrows speeds up rendering
significantly, but makes work cumbersome, as you need to know the order often.

It also implements [6] - the biggest improvement comes from not painting
dot-sized segments - >15times speedup for zoom to all data), some small improvement
are also present in close view (limited floats, transformations).

-- 
Petr "Nenik" Nejedly, NetBeans/Sun Microsystems, http://www.netbeans.org
355/113 -- Not the famous irrational number PI, but an incredible simulation!
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: speedup1.diff
URL: <http://lists.openstreetmap.org/pipermail/josm-dev/attachments/20071214/37ff4b58/attachment.ksh>


More information about the josm-dev mailing list