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

Add script to find slow-to-highlight files #913

Merged
merged 3 commits into from
Apr 12, 2020

Conversation

sharkdp
Copy link
Owner

@sharkdp sharkdp commented Apr 12, 2020

This PR adds a script that goes through all languages that are supported by 'bat'. For each language, it loops over the correspoinding file extensions and searches a given folder for matching files. It calls 'bat' for each of these files and measures the highlighting speed (number of characters per second). The script reports files which lead to slow highlighting speeds or errors during the execution of 'bat'.

Here are some results:

@sharkdp sharkdp changed the title Add find slow files script Add script to find slow-to-highlight files Apr 12, 2020
@sharkdp sharkdp merged commit edd2764 into master Apr 12, 2020
@sharkdp sharkdp deleted the add-find-slow-files-script branch April 12, 2020 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant