Skip to content

Compile pylint with mypyc to improve performance. #5933

Open
@feluxe

Description

@feluxe

Current problem

pylint seems kinda slow.

When I run it with time on a 400 LOC file:

> time pylint smartctl-check.py
...
------------------------------------------------------------------
Your code has been rated at 8.45/10 (previous run: 8.45/10, +0.00)

smartctl-check.py  2.82s user 0.12s system 92% cpu 3.202 total

This is annoying when I cleanup warnings in my editor, because every time I fix one I have to wait 3 seconds until the warnings render again, in order to continue. This makes my Python workflow unsmooth, because I'm constantly waiting for the warnings to render.

Desired solution

Compile pylint with mypyc.

Additional context

I think black and mypy are compiled with mypyc.

The mypy project has been using mypyc to compile mypy since 2019, giving it a 4x performance boost over regular Python.

Maybe this would be an option for pylint is well?

Mypyc benchmarks look promising:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Enhancement ✨Improvement to a componentNeeds PRThis issue is accepted, sufficiently specified and now needs an implementationperformance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions