Modify

Opened 8 months ago

Closed 6 months ago

Last modified 5 months ago

#19752 closed enhancement (fixed)

[Patch] StyleCache.intern: use HashMap instead of Storage

Reported by: simon04 Owned by: simon04
Priority: normal Milestone: 20.11
Component: Core Version:
Keywords: yourkit performance intern hashmap Cc:

Description (last modified by simon04)

  1. Start JOSM
  2. Install pbf plugin
  3. 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"

Attachments (1)

19752.patch (2.4 KB) - added by simon04 8 months ago.

Download all attachments as: .zip

Change History (5)

Changed 8 months ago by simon04

Attachment: 19752.patch added

comment:1 Changed 8 months ago by simon04

Description: modified (diff)

comment:2 Changed 7 months ago by Don-vip

Milestone: 20.0920.10

comment:3 Changed 6 months ago by simon04

Resolution: fixed
Status: assignedclosed

In 17101/josm:

fix #19752 - StyleCache.intern: use HashMap instead of Storage

comment:4 Changed 5 months ago by Don-vip

Milestone: 20.1020.11

Milestone renamed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain simon04.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.