Modify ↓
Opened 9 years ago
Closed 9 years ago
#11767 closed enhancement (fixed)
[Patch] Use Arrays.copyOf in OsmPrimitive#put(String, String)
Reported by: | michael2402 | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 15.08 |
Component: | Core | Version: | |
Keywords: | performance | Cc: |
Description
This increases performance for OsmPrimitive#put(String, String) on primitives that already have a lot of keys set. And it cleans up code.
Before patch
TIMER OsmPrimitive#put(String, String) with put/node ratio 0.05: 118ms TIMER OsmPrimitive#put(String, String) with put/node ratio 0.3: 97ms TIMER OsmPrimitive#put(String, String) with put/node ratio 3.0: 131ms TIMER OsmPrimitive#put(String, String) with put/node ratio 20.0: 221ms TIMER OsmPrimitive#put(String, String) with put/node ratio 200.0: 923ms
With patch applied
TIMER OsmPrimitive#put(String, String) with put/node ratio 0.05: 113ms TIMER OsmPrimitive#put(String, String) with put/node ratio 0.3: 90ms TIMER OsmPrimitive#put(String, String) with put/node ratio 3.0: 122ms TIMER OsmPrimitive#put(String, String) with put/node ratio 20.0: 205ms TIMER OsmPrimitive#put(String, String) with put/node ratio 200.0: 859ms ]]]
Attachments (1)
Change History (4)
by , 9 years ago
Attachment: | 0001-Use-Arrays.copyOf.patch added |
---|
comment:1 by , 9 years ago
Milestone: | → 15.08 |
---|
comment:2 by , 9 years ago
Keywords: | performance added |
---|
comment:3 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
In 8652/josm: