[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-readline] Pasting long lines is slow
From: |
Ole Laursen |
Subject: |
[Bug-readline] Pasting long lines is slow |
Date: |
Thu, 30 Apr 2015 17:03:52 +0200 |
Hi!
I'm seeing what looks to me like quadratic behaviour on pasting long
lines in readline applications like bash, python, psql.
To reproduce: open a new terminal with say bash, make a really long
line (> 20k characters, e.g. with python -c 'print "a" * 20000'), then
paste it into the terminal. The first characters are inserted quickly,
but it gradually slows down. With enough data it ends up being so slow
as to be unusable.
If I start a new bash with bash --noediting and try the same paste,
the characters show up instantaneously.
At first I thought it was a problem with the terminal emulator, but
the problem shows up both in xterm and gnome-terminal. I usually
encounter it trying to paste a long command or a list of ids to a
remote server.
Ole
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-readline] Pasting long lines is slow,
Ole Laursen <=