diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 10a4391713..7db70231c3 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -192,7 +192,7 @@ dependencies { implementation("com.github.chrisbanes:PhotoView:2.3.0") // faster sqlite library (additional capabilities like R*-tree or json1 not used) - // performance comparison: https://github.com/streetcomplete/StreetComplete/issues/3609#issuecomment-1031177576 + // putting 25% faster, reading 5% faster than Android 9 built-in sqlite implementation("com.github.requery:sqlite-android:3.39.2") implementation("androidx.sqlite:sqlite:2.3.0") diff --git a/app/src/main/java/de/westnordost/streetcomplete/data/osm/mapdata/NodeDao.kt b/app/src/main/java/de/westnordost/streetcomplete/data/osm/mapdata/NodeDao.kt index 4f93e4f45e..46808d9468 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/data/osm/mapdata/NodeDao.kt +++ b/app/src/main/java/de/westnordost/streetcomplete/data/osm/mapdata/NodeDao.kt @@ -97,6 +97,8 @@ private val jsonAdapter: JsonAdapter> = Moshi.Builder().buil private fun CursorPosition.toNode() = Node( getLong(ID), LatLon(getDouble(LATITUDE), getDouble(LONGITUDE)), + // copying from the moshi-"LinkedTreeHashMap" to a normal HashMap is slightly slower than keeping + // the moshi map, but tag search then is a little faster, so overall it's better, plus using less memory getStringOrNull(TAGS)?.let { jsonAdapter.fromJson(it)?.let { HashMap(it.size, 1.0f).apply { putAll(it) } } } ?: emptyMap(), getInt(VERSION), getLong(TIMESTAMP), diff --git a/app/src/main/res/raw/changelog_ee.yml b/app/src/main/res/raw/changelog_ee.yml index 20743d7406..9481f135b7 100644 --- a/app/src/main/res/raw/changelog_ee.yml +++ b/app/src/main/res/raw/changelog_ee.yml @@ -13,6 +13,7 @@
  • Add artwork type quest
  • Add railway platform ref quest
  • Allow showing direction of highlighted way
  • +
  • Add log reader
  • Other small fixes and improvements
  • Dangerous editing capabilities (compared to normal SC) are now hidden unless an "expert mode" setting is enabled
  • diff --git a/metadata/en-US/changelogs/5100.txt b/metadata/en-US/changelogs/5101.txt similarity index 88% rename from metadata/en-US/changelogs/5100.txt rename to metadata/en-US/changelogs/5101.txt index 321e123d9d..61aefb4d0f 100644 --- a/metadata/en-US/changelogs/5100.txt +++ b/metadata/en-US/changelogs/5101.txt @@ -2,9 +2,10 @@ - Understand left/right/both in custom overlay coloring - Allow saving full photos used for notes - Add level when creating POI while level filter is active -- Allow importing / exporting custom overlay separately +- Import / export custom overlay - Delete button in tag editor deletes row on long press - Allow deleting nodes in overlays +- Improve healthcare UI - "External quest" renamed to "Custom quest" - Add artwork type and railway platform ref quests - Allow showing direction of highlighted way