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

Avoid reapplying marker anchor class on every frame #8018

Merged
merged 1 commit into from
Mar 11, 2019
Merged

Conversation

mourner
Copy link
Member

@mourner mourner commented Mar 11, 2019

applyAnchorClass was taking noticeable time when profiling a map with a lot of HTML markers. The PR moves this code to happen once when creating a marker, which should be fine because marker anchors are not mutable.

Launch Checklist

  • briefly describe the changes in this PR
  • write tests for all new functionality
  • document any changes to public APIs
  • post benchmark scores
  • manually test the debug page

@mourner mourner added the performance ⚡ Speed, stability, CPU usage, memory usage, or power usage label Mar 11, 2019
@mourner mourner requested a review from ryanhamley March 11, 2019 16:08
Copy link
Contributor

@ryanhamley ryanhamley left a comment

Choose a reason for hiding this comment

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

Looks good!

@mourner mourner merged commit e6bee15 into master Mar 11, 2019
@mourner mourner deleted the faster-markers branch March 11, 2019 18:39
@jonnenauha
Copy link

jonnenauha commented Mar 26, 2019

When can this be expected in a release?

@mourner
Copy link
Member Author

mourner commented Mar 26, 2019

@jonnenauha we're cutting a beta release today, with the expected final release next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance ⚡ Speed, stability, CPU usage, memory usage, or power usage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants