react-native-threads
react-native-threads | JCTools | |
---|---|---|
2 | 2 | |
735 | 3,476 | |
1.0% | 0.5% | |
0.0 | 4.6 | |
4 months ago | 9 days ago | |
Java | Java | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
react-native-threads
-
Heavy computational function with out blocking ui
Use this if you can't offload that to a server so that your app may asyncronously request it. Do keep in mind that I did not use it, so I cannot vouch for how well it functions. I simply searched your question and found this to be helpful.
-
React Native: Understanding Threads.
In React Native, every process has only one thread. Unfortunately, because of this, people often use the terms interchangeably. You’ll notice UI Thread, JS Thread, and React Native Modules Thread are actually all processes, and react-native-threads actually implements multi-processing.
JCTools
-
if you had to restart at 0 knowledge what would you do?
Install some tool that would help you see the performance of your system, like a graph of the CPU usage, the top processes being used, disk activity/read/write, etc. Every time you run your program, glance at those numbers, eventually you'll develop an intuition. Basically write code and profile. A good exercise would be practicing with data structures, this site has an exhaustive list of them, find some stuff that's interesting then google the implementation, then build it yourself, test it, debug, profile, optimize, and understand the performance constraints. Eventually you'll develop better understanding and can compare between other people's works, optimizing them. If you want to go beyond, read some papers on lock-free algorithms https://github.com/JCTools/JCTools/tree/master/resources then read Brendan Gregg's blog and books. Read about how profiling tools work https://github.com/andikleen/pmu-tools/wiki/toplev-manual
-
What do implementations that use Unsafe do to be able to compile?
If I fork this implementation's repo and then publish a release (of the forked version) with my own commits via jitpack.io (committing with Android Studio IDE).
What are some alternatives?
java-concurrency-examples - Java Concurrency/Multithreading Tutorial with Examples for Dummies
Disruptor - High Performance Inter-Thread Messaging Library
Quasar - Fibers, Channels and Actors for the JVM
Agrona - High Performance data structures and utility methods for Java
parallel-collectors - Parallel Collectors is a toolkit easing parallel collection processing in Java using Stream API.
fastutil - fastutil extends the Java™ Collections Framework by providing type-specific maps, sets, lists and queues.
preact-worker-demo - Demo of preact rendering an entire app in a Web Worker.
Koloboke - Java Collections till the last breadcrumb of memory and performance
Eclipse Collections - Eclipse Collections is a collections framework for Java with optimized data structures and a rich, functional and fluent API.
GS Collections - GS Collections has been migrated to the Eclipse Foundation, re-branded as Eclipse Collections. https://www.eclipse.org/collections/
Javolution
Trove