Optimize parser matching
Parser matching becomes increasingly stressful with more and more parsers added. An upload with a very large amount of files (>100k) takes more time to parser match than its processing timeout.
We need to optimise parser matching:
- consolidate regex patterns into a single regex. One for paths, one for contents.
- read file context (first few k) for regex matching in parallel