Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upPaste is slow with high CPU usage #546
Comments
|
@goetzc Is there anything else you can share about it? This is normally prevented by noticing that so many bytes are coming in at once (more than 20 I believe) that this should be treated as a paste event, and the display not redrawn until all the byte have been read. Is there anything unusual about your setup? |
|
I just tested it in another setup using KDE Plasma 5 (same KF and Qt version as the affected system) and the paste function is fast. The affected system uses KDE 4, maybe the text clipper (klipper) has something to do, or Konsole. |
|
With 0.14.2 and commit 64d875e merged with conflicts, I can tell it is now much faster! |
|
Great! This is probably too large a change to be a bugfix, so I'm marking this closed now and it will be fixed in the next release. |
In my setup pasting text is really slow, with a high CPU usage.
For example pasting this 10-line function takes like 10 seconds:
bpython version 0.14.1 on top of Python 3.4.3 /usr/bin/python
If I can provide you with more information, I would be happy to do so.
EDIT: KDE 4 (Qt 4.8.7), with Konsole 15.08 (KDE Frameworks 5.15, Qt 5.5.1). The same behavior using Python 3.5.