Helge Hafting wrote:
Richard Heck wrote:
Helge Hafting wrote:
A really strange test: I compiled LyX, ran it, and couldn't type
fast. If I press down 10 keyboard keys at the same time, then I
get instant response (10 lowercase letters) in xterm. LyX outputs
the characters one by one! I could type a little faster than LyX
writing "test" over and over, a good touch typist would be much
worse off.
This may be the same problem I've been seeing and the root of
which, at least, has now been found. Abdel's working on a fix, I
think.
Looks like my problem indeed is a case of "slowness caused by
external selection" LyX speeds up to normal after a copy+paste inside
LyX. It does not slow down again if I later select something in an
xterm though.
Selecting is not enough, you have to put something into the clipboard to
trigger the slowness bug. Some systems/apps appears to mix the X11
selection and clipboard concepts happily though. So, on those
systems/apps you can see the bug just by doing a selection in an
external app.
Note that while the "normal" speed for LyX is fast enough for typing
(even fast typing) it is still not as fast as other apps. Pressing
down 10 or so keys in any other app will display all of them
instantly, as fast as if they were pasted in. LyX doesn't do that.
You can paste stuff into LyX with great speed, but hit 10 keys and
you'll see that they appear one by one - even if the speed may be
"ok" for a typist. The cpu has 100% load if you hit the keyboard
repeatedly in this fashion.
This is clearly not a big problem, but it surely indicates that LyX
is wasting a lot of effort on keyboard input. An effort that isn't
necessary at all, seeing how LyX itself is much faster when pasting
the same text or much more even. I don't know how this will fare on a
much weaker cpu.
While I won't deny that LyX is doing *way* too much things on a single
keystroke I might also add that the speed is OK on most systems.
Abdel.