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

Batch update props JSI calls #4503

Merged
merged 9 commits into from
Jun 21, 2023
Merged

Batch update props JSI calls #4503

merged 9 commits into from
Jun 21, 2023

Conversation

tomekzaw
Copy link
Member

@tomekzaw tomekzaw commented May 30, 2023

Summary

Fixes #4495.

Test plan

@Rag0n
Copy link

Rag0n commented Jun 12, 2023

Hey @tomekzaw, is it safe to cherry-pick and patch current version? We lack performance of reanimated and trying to improve it, so I'm willing to test this change.

@tomekzaw
Copy link
Member Author

tomekzaw commented Jun 12, 2023

Hello @Rag0n, I wouldn't say it's production ready but hey, it works, and it's faster. I had to prioritize other issues but once we release 3.3.0 I'll get right back to this PR.

edit: I've merged current main so you can even install Reanimated from this branch with yarn add react-native-reanimated#de1984fe83f068a3712ca2fde0878a1839de98d9.

@tomekzaw tomekzaw marked this pull request as ready for review June 19, 2023 14:07
@tomekzaw tomekzaw requested a review from piaskowyk June 19, 2023 14:17
@tomekzaw tomekzaw added this pull request to the merge queue Jun 21, 2023
Merged via the queue into main with commit 5fe5d0e Jun 21, 2023
16 checks passed
@tomekzaw tomekzaw deleted the @tomekzaw/batch-update-props branch June 21, 2023 12:42
github-merge-queue bot pushed a commit that referenced this pull request Jun 21, 2023
<!-- Thanks for submitting a pull request! We appreciate you spending
the time to work on these changes. Please follow the template so that
the reviewers can easily understand what the code changes affect. -->

## Summary

This PR fixes a regression introduced in #4503.

If there was more than one view descriptor, `queueMicrotask(this.flush)`
would never be called.

## Test plan

ChessboardExample.tsx
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

Successfully merging this pull request may close these issues.

Reanimated is a lot slower than Animated when animating multiple items.
3 participants