Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lnav unreasonably slow for long CSV string log. #1323

Open
alabamagan opened this issue Oct 25, 2024 · 1 comment
Open

Lnav unreasonably slow for long CSV string log. #1323

alabamagan opened this issue Oct 25, 2024 · 1 comment
Labels

Comments

@alabamagan
Copy link

lnav version
v0.12.2

Describe the bug
lnav becomes laggy when moving through long low strings. By "Long", I just mean csv with ~ 1000 elements > 50 lines. If the message spans across one page, lnav because unusable and will crash. Also, error traceback on python written by rich's log handler also tends to cause this problem. Sometimes it just crashes.

I think it's quite likely that logline field discovery is causing this issue, or perhaps the color codes written by rich have something to do with it.

To Reproduce
Steps to reproduce the behavior:
Try this log file:
rAIdiologist_2024-10-25.log

@alabamagan alabamagan added the bug label Oct 25, 2024
@tstack
Copy link
Owner

tstack commented Nov 15, 2024

Took a quick look and it seems related to lots of ANSI escape sequences in a single log message. I'll look into trying to optimize it. Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants