Skip to content

Experiment with Cython #445

Open
Open
@gsnedders

Description

@gsnedders

If we can simplify some of the code slightly, we might be able to get some decent performance increase under CPython from using Cython (note that we almost certainly want to keep our codebase pure Python, so this means using Cython's pure-Python mode). It's probably at least worth experimenting here.

At least for html5parser, making decent progress is blocked on #272, and relatedly making html5parser.HTMLParser.phases not a dict (so they can all become struct references).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @gsnedders

        Issue actions

          Experiment with Cython · Issue #445 · html5lib/html5lib-python