chore: rename project from loreg to lorex and add NFA optimization infrastructure
CI / build (push) Successful in 22s
CI / test (push) Successful in 14s
CI / valgrind (push) Successful in 21s
CI / coverage (push) Failing after 21s

- Rename all source files, headers, and build targets from loreg to lorex
- Add match context struct with pre-allocated state sets for reuse across calls
- Introduce optimization fields in nfa_t: literal prefix/suffix, first character bitmap, alternation dispatch table, anchor flags
- Add benchmark target with -O3 -march=native in Makefile
- Implement bracket_class_t bitmap cache for O(1) character class lookups
- Update README with performance section detailing optimization techniques
- Add coverage/ directory to .gitignore
- Update CHANGELOG to reflect reduced line counts after rename
This commit is contained in:
2026-01-04 00:58:43 +00:00
parent c97aded10f
commit 794dca4e2b
26 changed files with 1967 additions and 513 deletions
+2 -1
View File
@@ -6,12 +6,13 @@ build/
*.dylib
# Binary
loreg
lorex
# Coverage
*.gcov
*.gcda
*.gcno
coverage/
# Profiling
gmon.out