| Revision 4126,
364 bytes
checked in by bastiK, 12 months ago
(diff) |
|
memory optimizations for Node & WayPoint (Patch by Gubaer, modified)
The field 'proj' in CachedLatLon is a waste of memory. For the 2 classes where this has the greatest impact, the cache for the projected coordinates is replaced by 2 simple double fields (east & north). On projection change, they have to be invalidated explicitly. This is handled by the DataSet & the GpxLayer.
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | // License: GPL. For details, see LICENSE file. |
|---|
| 2 | package org.openstreetmap.josm.data.osm; |
|---|
| 3 | |
|---|
| 4 | import org.openstreetmap.josm.data.coor.EastNorth; |
|---|
| 5 | import org.openstreetmap.josm.data.coor.LatLon; |
|---|
| 6 | |
|---|
| 7 | public interface INode extends IPrimitive { |
|---|
| 8 | |
|---|
| 9 | LatLon getCoor(); |
|---|
| 10 | void setCoor(LatLon coor); |
|---|
| 11 | EastNorth getEastNorth(); |
|---|
| 12 | void setEastNorth(EastNorth eastNorth); |
|---|
| 13 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.