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

[BUG] Linux output hopelessly slow #35

Closed
pyjarrett opened this issue Oct 6, 2021 · 3 comments
Closed

[BUG] Linux output hopelessly slow #35

pyjarrett opened this issue Oct 6, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@pyjarrett
Copy link
Owner

Linux output is ridiculously slow!?

This is a definite regression since I know this wasn't a problem a while ago.

@pyjarrett pyjarrett added the bug Something isn't working label Oct 6, 2021
@pyjarrett
Copy link
Owner Author

pyjarrett commented Oct 6, 2021

Works fine in tmux (screen-256color), it's plain Gnome terminal (xterm-256color) which is super slow.

@pyjarrett
Copy link
Owner Author

Each one of these Set_Col is doing a VT100 cursor position request and then reading it.

            Set_Col (3);
            if Srch.Print_Line_Numbers then
                Put (Line_Num'Image);
                Set_Col (13);
            else
                Set_Col(5);

This results in:

18:34:24.715227 write(1, "\n", 1)       = 1 <0.000037>
18:34:24.715337 write(1, "\33[6n", 4)   = 4 <0.000020>
18:34:24.715415 read(0, "\33[55;1R", 512) = 7 <0.030911>   !!!!!!!!!!!!!!!!!!!!!!!!
18:34:24.746475 write(1, "\33[55;3H", 7) = 7 <0.000089>
18:34:24.746696 write(1, " 32", 3)      = 3 <0.000088>
18:34:24.746888 write(1, "\33[6n", 4)   = 4 <0.000082>
18:34:24.747022 read(0, "\33[55;6R", 512) = 7 <0.031077>   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!
18:34:24.778245 write(1, "\33[55;13H", 8) = 8 <0.000087>
18:34:24.778477 write(1, "\n", 1)       = 1 <0.000086>
18:34:24.778668 write(1, "->", 2)       = 2 <0.000080>
18:34:24.778799 write(1, "\33[6n", 4)   = 4 <0.000017>
18:34:24.778860 read(0, "\33[55;3R", 512) = 7 <0.030853>   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

@pyjarrett
Copy link
Owner Author

Not an ideal fix: 0361762

I'm thinking of caching cursor position in some way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant