Skip to content

v1.0.3

Choose a tag to compare

@gmpassos gmpassos released this 01 Apr 18:20
· 3 commits to master since this release
  • Fenwick - reduce memory usage:
    • Updated _tree field initialization to use typed lists (Uint8List, Uint16List, Uint32List, Uint64List) based on the bit length of maxTotal for memory efficiency.
    • Added private static method _buildIntList to create appropriate typed list for frequency storage.
    • Adjusted computeMaxTotal to return (1 << (precision ~/ 2)) - 1 instead of 1 << (precision ~/ 2) to correctly compute maximum total frequency.
    • Changed _tree initialization from List.filled to use _buildIntList in constructor.