Textualize / toolong

A terminal application to view, tail, merge, and search log files (plus JSONL).
https://www.textualize.io/
MIT License
3.21k stars 58 forks source link

Hangs on very long lines #55

Open Rictus opened 3 months ago

Rictus commented 3 months ago

It seems toolong hangs indefinitly when it encounters a line that is... toolong :)

This issue exists for toolong 1.5.0, I don't reproduce with toolong 1.4.0

Here's a test file root.log.139.txt And here's a capture of htop image

while toolong looks like this image

I'll take a look at the code and make a PR if I can find the time.

Edit: Looks like it's the RegexLogFormat that takes too much time to resolve

Thanks

Rictus commented 3 months ago

Hello @willmcgugan Do you think there is more work to be done or maybe it's the wrong direction?

Thanks!