Skip to content

Commit

Permalink
intialize HashMap with needed capacity
Browse files Browse the repository at this point in the history
see 2. in #4897 (comment)
  • Loading branch information
Helium314 committed Mar 27, 2023
1 parent ec4c874 commit f12dbaf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ data class Pin(
"kind" to iconName,
"importance" to importance.toString()
)
val props = HashMap<String, String>()
val props = HashMap<String, String>(properties.size + tangramProperties.size, 1f)
props.putAll(tangramProperties)
props.putAll(properties)
Point(position.toLngLat(), props)
Expand Down

0 comments on commit f12dbaf

Please sign in to comment.