fatoptimizer

Latest release on the Python Cheeseshop (PyPI) Build status of fatoptimizer on Travis CI

fatoptimizer is a static optimizer for Python 3.6 using function specialization with guards. It is implemented as an AST optimizer.

Optimized code requires the fat module at runtime if at least one function is specialized.

Links:

The fatoptimizer module requires a Python 3.6 patched with PEP 510 “Specialize functions with guards” and PEP 511 “API for code transformers” patches.