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

Flag potential "similar layers" #10

Open
aparlato opened this issue Feb 14, 2023 · 0 comments
Open

Flag potential "similar layers" #10

aparlato opened this issue Feb 14, 2023 · 0 comments

Comments

@aparlato
Copy link
Contributor

https://docs.mapbox.com/help/troubleshooting/mapbox-gl-js-performance/#similar-layers

Performance-wise, the best thing you can do for a stylesheet is to combine layers (reducing the overall number of layers), but there's also a benefit to making similar layers more similar by "grouping" them (making certain properties outlined here identical across layers). "Grouped" layers render faster, close to as if it were a single layer.

Could the performance linter have functionality to identify layers that could potentially be grouped (because they're already very similar across these fields)? We may not want this as a standard output since it would just be to help a human make decisions because it's not clear cut, but I could see a benefit in identifying layers that are nearly the same.

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