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

Slow on many markers #225

Open
sodafago opened this issue Nov 11, 2024 · 0 comments
Open

Slow on many markers #225

sodafago opened this issue Nov 11, 2024 · 0 comments

Comments

@sodafago
Copy link

sodafago commented Nov 11, 2024

Hello everyone! I noticed that each marker and cluster in the library is positioned separately, which makes each build stage quite expensive with a large number of markers, since with each build flutter has to rebuild the entire tree, without the ability to save some parts. I understand that most likely there are some reasons for this, perhaps it is due to animations. I want to know if there were versions in which all clusters with markers were positioned at each zoom entirely, and if not, should we add the ability to position all objects at once, to improve performance?
This will allow you not to recalculate the layer for each build, but to calculate the layers at each level in advance, and when changing the boundaries of the map, just move the entire layer. There is even a comment in the code about the performance of this place:
https://github.com/lpongetti/flutter_map_marker_cluster/blob/master/lib/src/marker_cluster_layer.dart#L597
Thanks in advance for the great library and answer!

P.S.: I will gladly participate in the development of this improvement, or even make it myself, although it may take a lot of time, but I would like to know your opinion on this issue before that.

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

No branches or pull requests

1 participant