Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(google-maps): Optimize addMarkers method for improved performance #1997

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

CSantosM
Copy link

  • Replacing individual coroutines for each marker with a single coroutine to build all MarkerOptions in bulk.
  • Utilizing withContext instead of multiple CoroutineScope instances to switch between Main and IO dispatchers efficiently.
  • Grouping map operations to add all markers to the ClusterManager at once and triggering clustering only after all markers are added.

These changes aim to reduce overhead and improve the responsiveness of the map when adding multiple markers.

CSantosM and others added 3 commits January 17, 2024 19:16
- Replacing individual coroutines for each marker with a single coroutine to build all MarkerOptions in bulk.
- Utilizing withContext instead of multiple CoroutineScope instances to switch between Main and IO dispatchers efficiently.
- Grouping map operations to add all markers to the ClusterManager at once and triggering clustering only after all markers are added.

These changes aim to reduce overhead and improve the responsiveness of the map when adding multiple markers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants