fatoptimizer

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 was specialized.

Links:

fatoptimizer requires a Python 3.6 patched with the PEP 511 (ast.Constant, sys.ast_tranformers).