Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip parsing if file doesn't contain assertions #6

Merged
merged 1 commit into from
Apr 19, 2018

Commits on Apr 18, 2018

  1. Skip parsing if file doesn't contain assertions

    Unassertify is quite an expensive transform, because it does full
    parsing and code generation. That only needs to be done for files that
    contain assertions, though. This patch adds a quick check: if the string
    `assert` does not even occur in the file, we'll just skip it, saving
    some time.
    goto-bus-stop committed Apr 18, 2018
    Configuration menu
    Copy the full SHA
    956b9cb View commit details
    Browse the repository at this point in the history