Skip to content

Commit 9974835

Browse files
authored
Update README.md
1 parent 5af4217 commit 9974835

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,17 @@ console.log(`Fibonacci Result: ${result}`)
114114
2. Since the library uses JSI for synchronous native methods access, remote debugging (e.g. with Chrome) is no longer possible. Instead, you should use [Flipper](https://fbflipper.com).
115115
3. All functions you are calling inside a custom thread, must be workletized to truly run on a separate thread. So add the `'worklet'` directive at the top of every function you're calling in that thread (including the thread callback itself), and don't forget to install the Reanimated babel plugin.
116116

117-
## License
117+
## Supported JS engines
118118

119-
MIT
119+
* JavaScript Core (JSC)
120+
* [Hermes](http://hermesengine.dev)
121+
* [V8](http://github.com/Kudo/react-native-v8)
122+
123+
## Performance
124+
125+
Since the worklets are completely dispatched in an isolated thread, nothing interrupts their execution. This means, the JS engine can optimize the functions really well, making execution fast.
126+
127+
Be aware that there always will be a small overhead when calling `spawnThread`, because all variables from outside have to be copied into the new thread first. For example, if you use the separate thread to do complex array operations, be aware that the array has to be copied into the separate thread first. Always benchmark the performance differences!
120128

121129
## Credits
122130

0 commit comments

Comments
 (0)