Skip to content

v0.7.0 Major Performance Optimization + Test Suite Expansion

Latest

Choose a tag to compare

@didasy didasy released this 03 Oct 16:23

Release Notes v0.7.0

πŸš€ Performance Improvements

  • Major performance optimization - Achieved 6-35x performance improvement across all algorithms
    • CentralityHamming: 896,338 ns/op (was 6,429,340 ns/op)
    • CentralityJaccard: 885,374 ns/op (was 30,036,357 ns/op)
    • PagerankHamming: 962,000 ns/op (was 7,015,008 ns/op)
    • PagerankJaccard: 962,579 ns/op (was 31,066,764 ns/op)

πŸ§ͺ Test Coverage

  • Comprehensive test suite - Added 442+ lines of new test coverage:
    • New bag_config_test.go - Tests for all Bag configuration methods (Set, SetDictionary, SetCustomAlgorithm, SetCustomWeighing, SetWordTokenizer, String)
    • New edge_cases_test.go - Covers edge cases for text summarization, sentence deduplication, and custom algorithm integration
    • New util_test.go - Comprehensive tests for SymmetricDifference and Intersection utility functions

πŸ› Bug Fixes

  • Test configuration fixes - Updated centrality algorithm test expectations to use hamming weighing
  • Test output updates - Refreshed expected test outputs to match new algorithm behavior
  • Repository updates - Module and README updates for consistency

πŸ“Š Enhanced Testing

  • Expanded test suite with 113 additional centrality algorithm tests
  • Added comprehensive edge case validation
  • Improved test consistency across different algorithm configurations