Changeset 447 in josm


Ignore:
Timestamp:
2007-11-01T13:51:47+01:00 (13 years ago)
Author:
gebner
Message:

Reduce GPX data memory usage.

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

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

    r444 r447  
    1515public class WithAttributes {
    1616       
    17         public Map<String, Object> attr = new HashMap<String, Object>();
     17        public Map<String, Object> attr = new HashMap<String, Object>(0);
    1818       
    1919        public String getString(String key) {
  • trunk/src/org/openstreetmap/josm/io/GpxReader.java

    r444 r447  
    1313import java.util.HashMap;
    1414import java.util.LinkedList;
     15import java.util.ArrayList;
    1516import java.util.Stack;
    1617import java.util.Map;
     
    100101                                        states.push(currentState);
    101102                                        currentState = state.trkseg;
    102                                         currentTrackSeg = new LinkedList<WayPoint>();
     103                                        currentTrackSeg = new ArrayList<WayPoint>();
    103104                                }
    104105                                if (qName.equals("link")) {
Note: See TracChangeset for help on using the changeset viewer.