-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Pasting Extremely Slow on CentOS 5 #2215
Comments
What terminal are you using? What are you pasting? Does it contain weird characters? Does it always take that long or just sometimes? |
I'm using GNOME Terminal 3.4.1.1 running on Ubuntu 12.04. The examples I gave above were all using this terminal, the CentOS 5 and Debian examples were machines I'd SSHed into from the Ubuntu machine. Everything I paste takes that long and it always takes that long. I timed it with a string of 50 "a"s. It visually adds characters in chunks of 4 or so characters and I can press Ctrl-C to stop the pasting. Pressing Ctrl-C does not erase already pasted characters, just prevents further characters appearing. |
So it's exacerbated by SSH, but also a bit slow (50 "a"s should be instantaneous) without it? Please upload your config.fish, custom functions (especially your prompt and all signal handlers) and any other configuration that might be important. |
Oh, no, it isn't exacerbated by SSH. The fastest machine is my Debian machine, which is over SSH and instantaneous. In order of speed: Debian 8 (over SSH, not local) > Ubuntu 12.04 (no SSH, local) > CentOS 5 (over SSH, VM on same machine as Ubuntu) I have nothing in ~/.config/fish/functions and do not have a ~/.config/fish/config.fish. What other relevant configuration could I provide? Pasting into vim or bash or a MySQL prompt is instantaneous on the CentOS machine. |
On none of the machines? Are all machines on fish 2.2.0? Can you try a different terminal (like xterm or console)? |
Possibly the output of |
They're all running 2.2.0. None of them have anything configured. (They did, but I removed them all whilst trying to determine what could be causing this issue.) The issue still occurs when using xterm and PuTTY. A trace can be found at https://www.dropbox.com/s/k4udf1zme1e5nsa/fish-trace.txt?dl=0 I made it using |
Weird! Certainly in the trace it looks like the characters are all read and written in quick succession in the trace; the last 'a' is written 150 msec after the first one is read, to my reading. |
First character read: Last character written: That's a little over two seconds. Unless I'm reading it wrong? |
That's after you pressed return, I think - it's been written to the history already at that point. 14:03:57.681106 is the last time it's written to stdout as it's being read. |
Yup, you're right. Very strange. Anything else I can provide to help? |
I used |
Nice work |
Sorry for the duplicate references. I accidentally created my pull request on my fork rather than this repo. |
I'm no longer at a computer that can build fish, so that second commit was a bit of a guess. I'll fix this in the evening. |
Here is the patch that I plan to test:
I'm trying to get CentOS 5 installed. If someone can beat me to it let me know if it works! |
Well, that's a lot simpler than my suggestion! I can confirm that your patch fixes the issue. I'm testing it on OS X 10.11. I wonder why I'm the only one that can see the issue and can see it on multiple machines. |
I think I'm able to reproduce this on my OS X box too. My fix definitely fixes it. I'm going to merge it. |
We ought to relnote this |
After that commit, pasting still seems slow on Linux and doesn't look to be having a big difference although it is a bit faster. |
@pickfire what's your config? |
@ridiculousfish https://github.com/pickfire/dotfiles/tree/alarm/home/config/fish I think the main reason why it is slow because I am using Raspberry Pi and it could be good for testing the speed of |
@ridiculousfish If you need the trace, here is it. http://sprunge.us/AgTW |
It seems that pasting when using root is 2x faster than using a normal user. The recording of the paste: |
@pickfire: I can't reproduce, neither on my laptop nor on my rasbpi via ssh. Though I'm currently building a newer fish on the latter (had 2.2.0-367-something), maybe it's a regression. Do you still get this? |
@faho, I have just tested it, it seems like it is a lot faster compared to what I get some time ago. I think this can be closed. |
Closing it is. Thanks! |
I just upgraded to fish 2.2.0 on CentOS 5.11. Since upgrading it takes a long time for the text I paste into the terminal to finish appearing, around 4 seconds to paste 50 characters.
It's also fairly slow to paste into a terminal running on Ubuntu 12.04, but only takes about half a second. There are no problems on a machine running Debian 8.
Anything I can do or provide to help debug the issue?
The text was updated successfully, but these errors were encountered: