-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Stylesheet parsing speed #357
Comments
I vote for waiting on the stylesheet restructure (#356) or wherever that heads before starting this one. Trying to remake osm-bright or mapbox-streets using the current structure is very tedious especially without complex filters (and, or, not, =, !=, <, <=, >, >=, regex). |
It seems like the restructure is going to take a while, so I went ahead recreated osm-bright: There is probably enough to start benchmarking, but missing things are:
The bucket count is currently at 60. I don't see this number drastically changing even after the stylesheet restructure. @yhahn What does the process of benchmarking look like? |
@edenh please open up the repo, it's not accessible for me. I'm currently writing a migration script from current style to "the future" so this will be an excellent sample to test on. :) |
@mourner should be accessible now |
@edenh benchmarking JSON parsing is pretty much as simple as
Beyond JSON parsing will be interesting if there are other load performance spots that a sufficiently complex style brings attention to. |
@yhahn I'm sure time evaluating the JSON itself will be insignificant compared to processing the style later for rendering on each zoom frame. |
Yeah, I'm assuming so too but such assumptions have burned me in the past so it's worth a quick check : ) |
Basic results:
|
\o/ time to not care |
It involved some refactoring to keep the selection in the store, accessible outside of simple_select. And other refactoring to improve testability and clarify the API of the store.
Deselect deleted features; closes mapbox#357
Please instaclose if this has been discussed/considered. As part of #356 I'd like to throw into the pot JSON-parsing speed as something to have in mind.
Some background:
Next actions
The text was updated successfully, but these errors were encountered: