Codon
A high-performance, zero-overhead, extensible Python compiler using LLVM
Features
- 런타임 오버헤드 없이 파이썬 코드를 네이티브 머신코드로 컴파일해주는 고성능 컴파일러
- 속도향상은 파이썬에 비해서 단일 쓰레드에서 10~100배 이상
- 성능은 C/C++과 동등하거나 때로는 더 우수함
- 파이썬과 달리 네이티브 멀티 쓰레딩을 지원
- Codon은 파이썬의 거의 모든 문법을 지원하지만, Drop-in 교체는 아님. 큰 코드베이스의 경우는 수정이 필요함
See also
- Cython
- Nuitka - 파이썬 모듈을 C수준 프로그램으로 변환후 libpython 과 C 파일을 사용해서 CPython과 비슷하게 동작
- Numba
- llvmlite
- PyPy
- Pyjion - A drop-in JIT Compiler for Python 3.10
Favorite site
- Github - exaloop/codon
- kostya/jit-benchmarks: Benchmark for interpreted languages implementations. - Python (Cpython, Graal, Pypy, Cython, Jython, Nuitka, Mypyc, Codon)