45 ms·
(HN doesn't support full Markdown. Please see https://news.ycombinator.com/formatdoc https://news.ycombinator.com/formatdoc for details.) Can you quantify "pai
by zahlman 2y ago
(HN doesn't support full Markdown. Please see https://news.ycombinator.com/formatdoc https://news.ycombinator.com/formatdoc for details.)
Can you quantify "painfully slow", "large dataset" etc.?
Have you tried running through with a simpler regex as a baseline? What about just reading the file in the first place?
Does this "huge text file" have excessively long lines, or just a lot of them?