Bump mojo-regex to 0.10.0#254
Merged
carolinefrasca merged 18 commits intomodular:mainfrom Apr 13, 2026
Merged
Conversation
Updates the pinned rev to cbfdabc (msaelices/mojo-regex#98) so that the 0.10.0 release shipped through modular-community includes the `init_pointee_move` fix on `NFAMatcher`'s lazy DFA allocation. The previous rev (8e56a946) was main HEAD at the 0.10.0 version bump, before that fix landed.
Contributor
Author
|
Bumped the pinned rev to include msaelices/mojo-regex#98 (fix for a broken `ptr[] = value` init pattern in `NFAMatcher`'s lazy DFA allocation). The fix needs to be in 0.10.0 since it is a latent double-free introduced in 0.9.x's lazy DFA work and is the kind of thing that only bites at allocator-layout quirks. Recipe now pins `rev: cbfdabc07804eccce24b19277b482072c6b969a1`. |
Includes PR modular#99 (StringSlice pattern in public API with hash-keyed cache) and the CHANGELOG entry for PRs modular#98 and modular#99 in the 0.10.0 section. New pin: 6a8a0bd (main HEAD).
Contributor
Author
|
Bumped the pinned rev again to include msaelices/mojo-regex#99 (hash-keyed regex cache, New pin: `rev: 6a8a0bd0e793527c5fc5acab881825b95a5da36b` (mojo-regex main HEAD). |
carolinefrasca
approved these changes
Apr 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps mojo-regex from 0.9.0 to 0.10.0. Performance tuning release . Mojo vs Rust win rate improved from 57% to 64%.
Changes since 0.9.0 (all in msaelices/mojo-regex):
range_lowercase9.4x faster than Python.StringSlicetext parameter through the matcher chain. ~11% average speedup.NFAMatcherlazy DFA initialization fix (init_pointee_move).StringSlicepattern parameter + hash-keyed regex cache.re.sub()for regex pattern substitution.sub()comparison benchmarks. vs Python: 5/5 wins (1.2x-9.0x faster).\1..`\9interpolation insub()`.sub()on fixed-width\d{N}capture groups. Skips NFA entirely, computes group boundaries via pointer arithmetic. Beats Python 2.8-3.2x and Rust 1.5-1.9x on phone number formatting.Recipe changes:
version: 0.9.0 -> 0.10.0rev: pinned to127c69fe93981221d88a4ec8264265c901ad3221(currentmainHEAD).