Skip to content

fix: add null check and optimize memory alloc#196

Open
glepnir wants to merge 1 commit intojhawthorn:masterfrom
glepnir:optimize
Open

fix: add null check and optimize memory alloc#196
glepnir wants to merge 1 commit intojhawthorn:masterfrom
glepnir:optimize

Conversation

@glepnir
Copy link

@glepnir glepnir commented Aug 17, 2025

Added null and empty string checks for needle and haystack in has_match and match functions. Optimized memory allocation for D and M matrices in match_positions by allocating them together in a single contiguous block

Added null and empty string checks for needle and haystack in `has_match` and `match` functions.
Optimized memory allocation for D and M matrices in `match_positions` by allocating them together
in a single contiguous block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant