Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to go beyond pure Python? #5

Closed
goodmami opened this issue Apr 8, 2020 · 1 comment
Closed

How to go beyond pure Python? #5

goodmami opened this issue Apr 8, 2020 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@goodmami
Copy link
Owner

goodmami commented Apr 8, 2020

The goal, particularly for the machine parser, is to use a faster platform for parsing than standard Python, while still being a Python module. It's not clear what is the best option, in terms of speed and efficiency, startup time, availability/portability, maintainability, licensing, etc. Here are some options:

  • PyPy -- the nice thing here is that nothing is really required besides using PyPy
  • Cython -- works well with CPython, can get very fast
  • CPython extension modules -- even more control, but more expertise needed
  • llvmlite -- maybe good for a state machine, but it's not clear how to work with string data instead of numbers
@goodmami goodmami added the help wanted Extra attention is needed label Apr 21, 2020
@goodmami
Copy link
Owner Author

I recently added machine.pyx as a Cython solution. It is now nearly as fast as my old textpy implementation, but without the recursion limit.

I think this can be closed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant