Skip to content

Slow processing of some invalid python files #1393

@qarmin

Description

@qarmin

Summary

I ran the ty check . command on each file individually — each filename includes the time it took to scan on my machine.

40K   07774379___10.531_seconds___invalid_python.py
40K   13832638___7.077_seconds___invalid_python.py
68K   16059136___14.184_seconds___invalid_python.py
12K   28136638___6.122_seconds___invalid_python.py
11K   35138501___4.671_seconds___invalid_python.py
12K   41326180___5.628_seconds___invalid_python.py
46K   48769042___timeout_20_seconds___invalid_python.py
44K   56867334___timeout_20_seconds___invalid_python.py
2,0K   86099013___14.385_seconds___invalid_python.py
32K   94313466___7.124_seconds___invalid_python.py
5,1K   97114626___timeout_20_seconds___invalid_python.py

files.zip

BBB.zip

Most of the larger files probably share the same root cause as #71

However, the file 5,1K 97114626___timeout_20_seconds___invalid_python.py is particularly interesting, as it doesn’t contain even small tuples.

Version

ty 0.0.1-alpha.23

Metadata

Metadata

Assignees

No one assigned

    Labels

    fuzzerIssues surfaced by fuzzing tyhangperformancePotential performance improvement

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions