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.

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.

Helge Hafting

Reply via email to