Changeset 12009 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-04-27T19:59:48+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java
r11914 r12009 27 27 import java.awt.image.BufferedImage; 28 28 import java.util.ArrayList; 29 import java.util.Arrays; 29 30 import java.util.Collection; 30 import java.util.Collections;31 31 import java.util.HashMap; 32 32 import java.util.Iterator; … … 1523 1523 } 1524 1524 1525 Collections.sort(allStyleElems); // TODO: try parallel sort when switching to Java 8 1525 // We use parallel sort here. This is only available for arrays. 1526 StyleRecord[] sorted = allStyleElems.toArray(new StyleRecord[allStyleElems.size()]); 1527 Arrays.parallelSort(sorted, null); 1526 1528 1527 1529 if (!benchmark.renderDraw(allStyleElems)) { … … 1529 1531 } 1530 1532 1531 for (StyleRecord record : allStyleElems) {1533 for (StyleRecord record : sorted) { 1532 1534 paintRecord(record); 1533 1535 }
Note:
See TracChangeset
for help on using the changeset viewer.