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

What is the reason for the instruction warning? #110

Open
oferRounds opened this issue Aug 23, 2023 · 7 comments
Open

What is the reason for the instruction warning? #110

oferRounds opened this issue Aug 23, 2023 · 7 comments

Comments

@oferRounds
Copy link

The library looks great! I wanted to ask what is the reason you don't recommend to use it as a standalone dependency?

@Acetyld
Copy link

Acetyld commented Aug 25, 2023

Same question here, would be lovely to use thus

@mrousavy
Copy link
Member

I wanted to ask what is the reason you don't recommend to use it as a standalone dependency?

I guess because usually something that involves parallelization or heavy computing you would write a native module for this. What are you trying to use RN Worklets for?

@Acetyld
Copy link

Acetyld commented Apr 9, 2024

I wanted to ask what is the reason you don't recommend to use it as a standalone dependency?

I guess because usually something that involves parallelization or heavy computing you would write a native module for this. What are you trying to use RN Worklets for?

In our case we use RealmJS. We wrote a sync script that does paginated API Calls and store it inside RealmJS, our biggest customer has 800.000k records, we do 1000 per page so we would like to run this on a separate js worklet, right now we use startBackgroundTaskWithName, but JS is still suffering. I tought about building a native module, but then we have to recreate the ios and java schemas for the realm android and realm ios.

@mrousavy
Copy link
Member

mrousavy commented Apr 9, 2024

Yea well maybe in this case it makes sense. 👍

@aks427
Copy link

aks427 commented Apr 9, 2024

I have a similar use case. We are using RealmJS and we'd like to be able to load ~25k events from the database and do some statistical analysis and then show that data to the user.

@Acetyld
Copy link

Acetyld commented Apr 17, 2024

Love to help/discuss on this matter @mrousavy . Would be nice to give RN performance for side tasks that are normally to intense 💪🏻💪🏻 maybe @aks427 can also elaborate.

@mrousavy
Copy link
Member

Try react-native-worklets-core - if it works for you and is more performant, then that's great :)

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

No branches or pull requests

4 participants