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

Improve performance on maps with many children #142

Merged
merged 11 commits into from
Sep 22, 2023

Conversation

hugosandelius
Copy link
Contributor

@hugosandelius hugosandelius commented Sep 22, 2023

This change will significantly improve the running time of st_folium on maps with many children.
In an example I tried with 10,336 child objects, the running time was improved from ~14 seconds to ~400 milliseconds.

Fixes #125

@blackary
Copy link
Collaborator

Thank you so much! I've been meaning to try re.sub, but hadn't gotten around to it yet. If all the tests pass, this seems like an excellent fix!

@blackary blackary self-requested a review September 22, 2023 13:13
@randyzwitch
Copy link
Owner

Looks like this is failing due to the pre-commit hook for Black formatting

@hugosandelius
Copy link
Contributor Author

I force-pushed a fix for the formatting, the pre-commit hook should pass now.

@nathanjones4323
Copy link

Super excited to try this out!

@randyzwitch
Copy link
Owner

@blackary Can you try to run these tests locally, or change the timeout of 30000ms? That's what keeps failing, the actual tests never even run

@blackary
Copy link
Collaborator

I think some of the failures were literally because the playwright window was too small to see the map 🤦

Copy link
Collaborator

@blackary blackary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@blackary blackary merged commit bb5c9ae into randyzwitch:master Sep 22, 2023
4 checks passed
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.

Performance issue when working with many points
4 participants