Ignore:
Timestamp:
2011-11-03T23:23:34+01:00 (12 years ago)
Author:
Don-vip
Message:

see #7028 - improves GPX dragging performances by 50%, but the main issue is still here (rounding is exact, but 1000 times slower than before)

File:
1 edited

Legend:

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

    r4522 r4573  
    4444
    4545    public Bounds(LatLon b) {
    46         this(b, b);
     46        // Do not call this(b, b) to avoid GPX performance issue (see #7028) until roundToOsmPrecision() is improved
     47        this.minLat = LatLon.roundToOsmPrecision(b.lat());
     48        this.minLon = LatLon.roundToOsmPrecision(b.lon());
     49        this.maxLat = this.minLat;
     50        this.maxLon = this.minLon;
    4751    }
    4852
Note: See TracChangeset for help on using the changeset viewer.