Skip to content

Cython: 26% faster on a simple benchmark. No code change. #1250

@rchateauneu

Description

@rchateauneu

Cython is able to speedup pure Python code of about 20% apparently, without code change.

The only needed adaptation is to add some statements to setup.py which, if cython is installed could convert some or all Python source files to C, the compile them.

In a second stage, it would also be possible to add Cython decorators for static typing in the Python file. These decorators are ignored by the interpreter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions