-
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
Remove feature state (very maybe possibly ready) #7696
Conversation
test/unit/ui/map.test.js
Outdated
@@ -1518,30 +1728,6 @@ test('Map', (t) => { | |||
}); | |||
}); | |||
|
|||
t.test('no render after idle event', (t) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These tests also look accidentally removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just a nit now, but it looks like these two tests changed location in the file. Let's put them back where they started so it's easy to tell in the diff that nothing's changed.
7684cec
to
d944552
Compare
@@ -0,0 +1,76 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The three benchmark tests here look to be almost identical with the exception of what's passed to setFeatureState
and removeFeatureState
in bench
. You could probably create an overarching remove_paint_state
benchmark that has sub-tests for each individual test, in the same vein as the Expressions and Layers benchmarks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ryanhamley was looking to do just that! thanks for the tip, was able to crib the format from Layers. consolidated the benches here d048d22
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is nearly there! 🛩
Commit history could use some cleanup to ensure a correct and clean merge back to master.
7581f4b
to
b40cb44
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've left a few small comments, but overall this is looking good to me. 🚀
formatting
…practice-branch
c646648
to
4e076e1
Compare
lint squash
4e076e1
to
0612f65
Compare
got a bit carried away with squashing-- moving things over to #7761 |
retry of #7669
Addresses #6889
Depending on parameters specified, enables feature state removal at the source, feature, and property levels.
Effect on
setFeatureState
perf:cc/ @asheemmamoowala