Skip to content

Bump mojo-regex to 0.7.0 for Mojo 0.26.2#229

Merged
carolinefrasca merged 5 commits intomodular:mainfrom
msaelices:regex-0.6.0-bump
Mar 24, 2026
Merged

Bump mojo-regex to 0.7.0 for Mojo 0.26.2#229
carolinefrasca merged 5 commits intomodular:mainfrom
msaelices:regex-0.6.0-bump

Conversation

@msaelices
Copy link
Copy Markdown
Contributor

@msaelices msaelices commented Mar 22, 2026

Summary

Bump mojo-regex recipe from 0.6.0 to 0.7.0 for Mojo 0.26.2.

Changes in 0.7.0

  • Route grouped literal alternations to DFA engine (80-167x faster)
  • Use SIMD matcher to skip non-matching positions in match_all (8-16x faster)
  • Add zero-allocation is_match_char for NFA character matching (4.5-14.5x faster)
  • Fix SIMD character class matcher silently disabled by Mojo 0.26.2 Optional bug (2.6-3.9x faster)
  • Pre-allocate String capacity in range expansion loops (1.3-2x faster)
  • Optimize negated character class transition building
  • Replace all fn with def, fix all compiler warnings
  • Zero compiler warnings

See full changelog: https://github.com/msaelices/mojo-regex/blob/main/docs/changelog.md

@msaelices msaelices changed the title Bump mojo-regex to 0.6.0 for Mojo 0.26.2 Bump mojo-regex to 0.7.0 for Mojo 0.26.2 Mar 24, 2026
@sstadick
Copy link
Copy Markdown
Collaborator

@msaelices Just an FYI there are conflicts!

@carolinefrasca carolinefrasca merged commit d5a6c31 into modular:main Mar 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants