Opened 5 years ago
Last modified 5 years ago
#19752 closed enhancement
[Patch] StyleCache.intern: use HashMap instead of Storage — at Version 1
| Reported by: | simon04 | Owned by: | simon04 |
|---|---|---|---|
| Priority: | normal | Milestone: | 20.11 |
| Component: | Core | Version: | |
| Keywords: | yourkit performance intern hashmap | Cc: |
Description (last modified by )
- Start JOSM
- Install pbf plugin
- Open
montenegro-latest.osm.pbf
Time spent in StyleCache.intern is reduced from 13_919 ms to 926 ms.
"Merged Call Tree","Time Diff (ms)","Old Time (ms)","New Time (ms)","Level" "org.openstreetmap.josm.gui.mappaint.StyleCache.intern() StyleCache.java","-12992","13919","926","1" "java.util.HashMap.computeIfAbsent(Object, Function) HashMap.java","916","0","916","2" "org.openstreetmap.josm.data.osm.Storage.putUnique(Object) Storage.java","-13648","13648","0","2"
Change History (2)
by , 5 years ago
| Attachment: | 19752.patch added |
|---|
comment:1 by , 5 years ago
| Description: | modified (diff) |
|---|
Note:
See TracTickets
for help on using tickets.


