faster-python-with-taichi
Pyjion
Our great sponsors
faster-python-with-taichi | Pyjion | |
---|---|---|
3 | 18 | |
73 | 1,302 | |
- | - | |
7.1 | 6.1 | |
17 days ago | 3 months ago | |
Python | C++ | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
faster-python-with-taichi
-
Accelerate Python code 100x by import taichi as ti
You can refer to the source code of three examples comparing Taichi with Python here.
-
Accelerate Python code 100x using Taichi Lang
A shortcut to the source code of the three cases: https://github.com/taichi-dev/faster-python-with-taichi.
Pyjion
-
CPython vs PyPy
Finally, there is also Pyjion which based on its website is “A drop-in JIT Compiler for Python 3.10” (https://www.trypyjion.com/). We will be covering it on a separate writeup. See you next time ;-).
- Accelerate Python code 100x by import taichi as ti
- Create CPython extensions in .NET?
-
You think python is slow ?
Pyjion Easy to use, small compiler. Increase performance of our 🐌 CPython.
-
Why doesn't CPython use a JIT?
Pyjion (and in particular its README) are worth a read for existing options.
-
High Performance subset of python
https://github.com/tonybaloney/Pyjion Seems pretty cool
-
Python bytecode explained
additional tools to improve python performance are also e.g. microsofts Pyjion, which enables python jit using their .net platform (apparently super easy to use, makes code twice as fast), and there is a proposal to remove the GIL (which makes parallel code a lot faster, but has some big downsides)
- What would you want to see in Python?
- Microsoft’s Pyjion compiler for Python reaches 1.0
-
Pyjion, a drop-in JIT compiler for Python 3.10 is now v1.0
Looks like it was started at Microsoft, the tonybaloney/Pyjion was forked from microsoft/Pyjion.
What are some alternatives?
Numba - NumPy aware dynamic Python compiler using LLVM
Nuitka - Nuitka is a Python compiler written in Python. It's fully compatible with Python 2.6, 2.7, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, and 3.10. You feed it your Python app, it does a lot of clever things, and spits out an executable or extension module.
graalpython - A Python 3 implementation built on GraalVM
cinder - Cinder is Meta's internal performance-oriented production version of CPython.
falcon - The no-magic web data plane API and microservices framework for Python developers, with a focus on reliability, correctness, and performance at scale.
Pyjion
ideas
Cython - The most widely used Python to C compiler
python-builddsl - A superset of the Python programming language with support for closures and multi-line lambdas
Pyston - A faster and highly-compatible implementation of the Python programming language.
hpy - HPy: a better API for Python
Python Cheatsheet - All-inclusive Python cheatsheet