Skip to content

Hamsters.js v5.4.0 Released!

Compare
Choose a tag to compare
@austinksmith austinksmith released this 01 Oct 01:37

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
     ]    
    };