Closed twoertwein closed 2 years ago
This seems to be a band-aid rather than a solution. And it's still unacceptably slow. 2.5-3 min per Python module in a project with more than one module would be already 6 minutes.
P.S. This change would turn darglint into a dist requiring a whole matrix of platform-specific wheels to be shipped, which would need much more effort than this small patch, which is already failing in the CI.
Fully agree with all your points :) and on other files it is exactly as slow as before
This PR uses mypyc to compile cyk.py to a python c-extension. It would be beneficial to also compile all files that cyk.py imports.
To test the compiled version simply replace
darglint = ...
in pyproject withdarglint = {git = "https://github.com/twoertwein/darglint"}
.Compiling cyk.py improves the speed for the numpy and google style. Using the example from @webknjaz in #186:
official darglint 1.8.1
with this PR and mypy 0.931