Repository navigation
v0.1.1
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, andavx2_searchfunctions. - 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_searchby 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_searchto 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_searchandrabin_karp_searchfor 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 executablekrep.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.