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

perf(ios): add early returns #3741

Merged

Conversation

KrzysztofMoch
Copy link
Collaborator

@KrzysztofMoch KrzysztofMoch commented May 7, 2024

Summary

Add early returns - this will allow to skip code that was called only for callbacks (that are not defied/used by user)

On android we can do it as there we are sending events and we don't know if callback is defined or not

Test plan

  • Tested in example app
  • CI pass

ios/Video/RCTVideo.swift Show resolved Hide resolved
ios/Video/RCTVideo.swift Show resolved Hide resolved
ios/Video/RCTVideo.swift Show resolved Hide resolved
ios/Video/RCTVideo.swift Outdated Show resolved Hide resolved
ios/Video/RCTVideo.swift Outdated Show resolved Hide resolved
ios/Video/RCTVideo.swift Outdated Show resolved Hide resolved
@KrzysztofMoch KrzysztofMoch merged commit 1d235a1 into TheWidlarzGroup:master May 8, 2024
6 checks passed
@KrzysztofMoch KrzysztofMoch deleted the perf/early-returns branch May 8, 2024 14:07
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.

None yet

2 participants