Skip to content

v0.1.1

Choose a tag to compare

@davidesantangelo davidesantangelo released this 11 Mar 17:56
· 137 commits to main since this release

Summary

  • Improved pattern matching performance by implementing non-overlapping search optimizations across multiple algorithms.
  • Fixed edge cases in kmp_search, rabin_karp_search, simd_search, and avx2_search functions.
  • Introduced an optimized approach for single-character pattern searches in kmp_search.
  • Updated SIMD and AVX2 implementations for case-insensitive matching.

Changes

New Features

  • Single-character pattern optimization: Improved efficiency of kmp_search by handling single-character patterns separately.
  • Non-overlapping match handling: Updated multiple search functions to skip over matched patterns to enhance performance and avoid redundant checks.
  • Optimized SIMD/AVX2 pattern matching: Used memory-safe methods to handle case-insensitive matching in vectorized search.

Bug Fixes

  • Fixed incorrect prefix table handling in kmp_search.
  • Adjusted rabin_karp_search to correctly update text hash during skipping.
  • Resolved incorrect AVX2 pattern initialization for case-insensitive searches.
  • Prevented overlapping matches from affecting search efficiency.

Code Improvements

  • Replaced for-loops with while-loops in kmp_search and rabin_karp_search for better efficiency.
  • Applied memset for safer memory initialization in SIMD/AVX2 processing.
  • Improved readability and maintainability of search algorithms.

Files Modified

  • krep.c: Enhanced search algorithm implementations.
  • New Binary Files:
    • krep: Compiled executable
    • krep.o: Compiled object file

Version Bump

  • Updated version: 0.1.0 → 0.1.1

Author

Davide Santangelo


This update significantly enhances the efficiency and accuracy of krep's pattern matching functionality, ensuring better performance and more reliable results.