Opened 8 years ago

Closed 8 years ago

Last modified 8 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:


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 8 years ago.

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by shinigami

Attachment: getkeys.patch added


comment:1 Changed 8 years ago by Don-vip

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

comment:2 Changed 8 years ago by Don-vip

Resolution: fixed
Status: newclosed

In 8566/josm:

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

comment:3 Changed 8 years ago by Don-vip

Milestone: 15.0715.08

Milestone renamed

comment:4 Changed 8 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 to be modifiable.

Modify Ticket

Change Properties
Set your email in Preferences
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.