Skip to content

Add pure Python implementation with optional native extension#32

Merged
kpdyer merged 1 commit into
masterfrom
pure-python-fallback
Jan 10, 2026
Merged

Add pure Python implementation with optional native extension#32
kpdyer merged 1 commit into
masterfrom
pure-python-fallback

Conversation

@kpdyer

@kpdyer kpdyer commented Jan 10, 2026

Copy link
Copy Markdown
Owner
  • Add pure Python DFA implementation (fte/cDFA_py.py)
  • Make C++ extension optional (pure Python by default)
  • Use FTE_USE_NATIVE=1 to enable C++ extension at runtime
  • Use FTE_BUILD_NATIVE=1/0 to control extension build
  • Update CI to test both pure Python and native modes
  • Update documentation with new configuration options

Pure Python works without GMP dependency. Native extension provides ~2.5x performance improvement when GMP is available.

- Add pure Python DFA implementation (fte/cDFA_py.py)
- Make C++ extension optional (pure Python by default)
- Use FTE_USE_NATIVE=1 to enable C++ extension at runtime
- Use FTE_BUILD_NATIVE=1/0 to control extension build
- Update CI to test both pure Python and native modes
- Update documentation with new configuration options

Pure Python works without GMP dependency. Native extension provides
~2.5x performance improvement when GMP is available.
@kpdyer kpdyer merged commit cfac494 into master Jan 10, 2026
16 checks passed
@kpdyer kpdyer deleted the pure-python-fallback branch January 10, 2026 19:30
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