Modify ↓
#22453 closed defect (fixed)
[PATCH] Decrease allocations/CPU samples in Geometry.getDistanceSegmentSegment
Reported by: | taylor.smock | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 22.12 |
Component: | Core | Version: | |
Keywords: | Cc: |
Description
Current statistics, using Mesa County, CO as the data ("nwr in 'Mesa County, CO'") with the MapWithAI plugin validations enabled:
- CPU samples: 54,604 -> 39,146 (-15,458, -28.3%)
- Memory allocations: 170,983,028,400 -> 4,645,539,624 (-166,337,488,776, -97.3%)
- All remaining allocations are from creating a new LatLon during interpolation
- .7% improvement in GC threads (overall, see notes)
Notes:
- getDistanceWayNode was also modified to avoid EastNorth allocations
- All remaining allocations come from the creation of new LatLon objects. This may be alleviated when value classes become a thing in Java LTS.
- Profiling was done from application startup to shutdown
Attachments (1)
Change History (4)
by , 2 years ago
Attachment: | 22453.patch added |
---|
comment:1 by , 2 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
In 18589/josm: