Modify

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#11653 closed enhancement (fixed)

[PATCH] AbstractPrimitive.getKeys optimization

Reported by: shinigami Owned by: team
Priority: normal Milestone: 15.08
Component: Core Version: latest
Keywords: performance Cc:

Description

AbstractPrimitive.getKeys creates HashMap even for empty keys data. Change to Collections.emptyMap and singletonMap saves lots of garbage during file loading.

Attachments (1)

getkeys.patch (1.1 KB) - added by shinigami 5 years ago.
patch

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by shinigami

Attachment: getkeys.patch added

patch

comment:1 Changed 5 years ago by Don-vip

Keywords: performance added
Milestone: 15.07
Summary: AbstractPrimitive.getKeys optimization[PATCH] AbstractPrimitive.getKeys optimization

comment:2 Changed 5 years ago by Don-vip

Resolution: fixed
Status: newclosed

In 8566/josm:

fix #11653 - AbstractPrimitive.getKeys optimization (patch by shinigami)

comment:3 Changed 5 years ago by Don-vip

Milestone: 15.0715.08

Milestone renamed

comment:4 Changed 5 years ago by simon04

In 8708/josm:

see #11827 - see #11653 - Revert r8566 till its impacts are fully clarified

Some/many parts of the code rely on org.openstreetmap.josm.data.osm.AbstractPrimitive#getKeys to be modifiable.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
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.