Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Welcome to coregex! #2

kolkov started this conversation in General
Discussion options

Welcome to coregex - a high-performance regex engine for Go!

What is coregex?

coregex is a production-grade regular expression engine that achieves 5-50x speedup over Go's standard library through:

  • Multi-engine architecture - automatically selects the best execution strategy
  • SIMD optimizations - AVX2/SSSE3 accelerated pattern matching
  • Lazy DFA - on-demand state computation for memory efficiency
  • Zero-allocation hot paths - no GC pressure in tight loops

Quick Start

import "github.com/coregx/coregex"
// Drop-in replacement for regexp
re := coregex.MustCompile(`\d+`)
match := re.FindString("hello 123 world") // "123"

Performance Highlights

Pattern Type stdlib coregex Speedup
Case-insensitive 1.6 ms 7 us 233x
Suffix patterns .*\.txt 27 ms 21 us 1,314x
Capture groups 700 ns 70 ns 10x

Get Involved

  • Issues - Report bugs or request features
  • Discussions - Ask questions, share ideas
  • Pull Requests - Contributions welcome!

Resources

We're excited to have you here!

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /