Syntax highlighting for very large files incredibly slow
Created by: limitedmage
- Sourcegraph version: 3.41
- Platform information: N/A
Issue reported by https://github.com/sourcegraph/accounts/issues/8205 Network trace available at https://drive.google.com/file/d/1Mc899L8ckNAIQVac791xYKgD9LJAra_T/view?usp=sharing
Steps to reproduce:
- In site config, set
"search.largeFiles": ["**/**"]
so very large files are all indexed - Run a search that returns many very large files, but only one chunk per result.
- Wait for results to load
Expected behavior:
Results load
Actual behavior:
Results load with blank boxes and take forever to populate, if ever. The network tab shows that syntax highlighting is pending for a very long time; it may eventually complete or time out.