googlemaps / googlemaps/android-maps-compose
Unnecessary map initialization performance penalty caused by delaying composing GoogleMap() subcomposition until after GoogleMap object is available
Open
priority: p2
type: bug
- Dominant language
- Kotlin
- Stars
- 1.3k
- Forks
- 181
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 18
Description
android-maps-compose 4.3.0
From code inspection I've noticed that there is an undue performance penalty caused by delaying the `GoogleMap()` subcomposition until after the `GoogleMap` object has been made available via suspending `MapView.awaitMap()`.
While the `GoogleMap` object is required during the "apply changes" phase of the subcomposition, it should not be required to perform the initial composition of the subcomposition, prior to "apply changes".
Initial composition phase of subcomposition and `MapView.awaitMap()` should and can be performed in parallel.
Contributor guide
Assessment
This issue has not been assessed yet.