100% Vanilla Javascript Multithreading & Parallel Execution Library
This release resolves a few issues that will increase overall performance however it comes at a cost of higher memory usage
Resolved index calculation to support odd numbers of threads such as triple core processors Added more unit tests Resolved some unit tests not working in Firefox browser Added task.output for output data, previously the library was modifying the input array as the output, this was great from a memory usage standpoint however its bad practice to modify inputs so that's no longer happening. Cleaned up code some
Enjoy!
This release was primarily targeted around more unit testing and fixing the debugging metrics, additionally there is a slight performance increase and resolves a memory leak.
This release also drops support for Internet Explorer 9, support for Internet Explorer 10 is no longer guaranteed to work and has not been tested.
Enjoy!
This release is mainly a bug fix release and does not include any optimizations or other changes beyond fixing the below issues.
Enjoy!
I'm happy to announce the release of Hamsters.js v5.4.0, this version is a major overhaul and completes the implementation of the JIT data management system. This is truly a game changing release as it dramatically reduces memory usage while also increasing per thread scaling and reducing library overhead and total package size.
This release also comes with a few notable changes
Memoization support has been temporarily removed
JIT data management is now fully implemented, reducing memory allocation to at most 1 copy of the original input data
Removed old unused logic to reduce code package size
You can now control which threads operate on which pieces of your input data by passing a new optional indexes argument
const params = {
array: [1,2,3,4],
threads: 2,
indexes: [
{start: 0, end: 0}, //Thread one will operate on only the first element
{start: 1, end: 3} //Thread two will operate on the remaining elements
]
};
Hamsters.js v5.3.9 is officially live!
Hamsters.js v5.3.6 is officially live!
Fixed problems with React Native 0.62 and non legacy mode using react-native-hamsters
Simplified react native thread logic
Hamsters.js v5.3.5 is officially live!
Hamsters.js v5.3.3 is officially live!
Hamsters.js v5.3.2 is officially live! - THIS IS A HOTFIX PATCH RELEASE FOR V5.3.1