-
Notifications
You must be signed in to change notification settings - Fork 28.7k
Improve UI-thread animation performance #159288
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
Conversation
cbd5f6b
to
c32e6bd
Compare
I took the same benchmark I used for #159757 and ran it against this branch. Much to my chagrin, I only saw a performance improvement of 0.1 ms, i.e. within the margin of error. But after reading through #138481, it turns out that we had different use cases: I was just checking the ability to send a bunch of notifications whereas @ignatz was repeatedly adding & removing listeners. So the good news is: this PR vastly improves performance for their use case without making mine any worse! |
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.
LGTM, and huge thanks to everyone who was working on #138481!
I just had a couple of tiny nits, which are especially trivial since the new autoformatter will soon take care of whitespace automatically 🙂
Co-authored-by: Nate Wilson <[email protected]>
The following PR (#138481) got split in 2, this is part 2.
We now have the microbenchmarks to compare this change against (and hopefully see improvements).
Close: #146211
Part 1: #153368