Changeset 2380 in josm


Ignore:
Timestamp:
2009-11-01T22:49:33+01:00 (15 years ago)
Author:
hansendc
Message:

QuadBucket update

  • Use ArrayList for contents... iteration is faster
  • Remove unneeded includes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/QuadBuckets.java

    r2355 r2380  
    3232
    3333import org.openstreetmap.josm.data.coor.QuadTiling;
    34 import org.openstreetmap.josm.data.coor.CachedLatLon;
    3534import org.openstreetmap.josm.data.coor.EastNorth;
    3635import org.openstreetmap.josm.data.coor.LatLon;
    37 import org.openstreetmap.josm.data.osm.visitor.Visitor;
    3836
    3937
     
    363361            boolean ret = false;
    364362            if (content == null)
    365                 content = new LinkedList<T>();
     363                content = new ArrayList<T>();
    366364            ret = content.add(o);
    367365            if (debug && !this.isLeaf())
Note: See TracChangeset for help on using the changeset viewer.