googlemaps / googlemaps/android-maps-compose

Slow Composition and Unnecessary Recompositing of Google Maps with Custom Clusters

オープン
#449 コメント 6 件 リアクション 27 件 担当者 0 名 GitHub で見る
priority: p1 type: question
主要言語
Kotlin
スター
1.3k
フォーク
181
平均マージ
2日 23時間
マージ済み PR(30日)
18

説明

I've used Google Maps on XML (Views) with Cluster Manger with my customization. I decided to migrate to Compose Maps and Custom Clusters, I'm still using View-based Cluster Manager, but that doesn't affect my issue.

The issue is, that the map loads slowly on Composable Screen, one of the Bottom navigation screens.
Every navigation from another screen and coming back to the same map screen reloads the map, but the markers are loaded on time. I've already handled it. The map looks like a mesh grid some of the time, clustering markers take a couple of seconds and lag for second as well, and after that, it works smoothly.
Unlike Views, it's not caching the map and the markers well, is there any workaround?

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

ボトムナビゲーションで composable なマップ画面から別の画面へ移動して戻り、マップの読み込み、マーカーのクラスタリング、再コンポジションを観察して問題を再現します。この動作を既存の View ベースの実装と比較し、Compose Maps 画面のライフサイクルとカスタムクラスターの統合を調査します。再読み込みと遅延の原因を特定し、検証済みの回避策または修正を文書化できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
android, kotlin
領域
mobile, performance
issue の種類
バグ
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。