Skip to content

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

Merged
sharkdp merged 3 commits intomasterfrom
add-find-slow-files-script
Apr 12, 2020
Merged

Add script to find slow-to-highlight files#913
sharkdp merged 3 commits intomasterfrom
add-find-slow-files-script

Conversation

@sharkdp
Copy link
Copy Markdown
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 force-pushed the add-find-slow-files-script branch from 8745e48 to 702a7e1 Compare April 12, 2020 16:34
@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.

1 participant