Adam Treverrow wrote:
2. The second issue relates to typing lag. I realise this issue has
been reported previously for OS X. Typing is unbearably slow in notes,
floats etc. I have instant preview turned off. Typing in standard text
is variable, but in general too slow for me to use 1.5.2. I've been
working with some large files, originally created in v1.3.7, but saved
as new versions using 1.5.2. Adding text to an existing paragraph of
standard text in these documents results in typing lag. The lag is
greatest when text is added at or near the beginning of a paragraph.
The typing lag does not occur when typing in a newly created paragraph
- it emerges as the paragraph length increases. I can reproduce both
aspects of this behaviour in new files created using 1.5.2.
I still see this at times under Linux, too. Resizing the window usually
helps. I intend to figure this out at some point fairly soon.
For anyone who wants to have a go, what you need to do is put some timer
code into LyXFunc.cpp and try to figure out where the slowness is coming
from. This is the code:
#include <QTime>
...
QTime timer;
timer.start();
...do stuff
lyxerr << timer.restart() << std::endl;
...do more stuff
lyxerr << timer.restart() << std::endl;
...etc
Now look at the output and see what's taking so long, and then try to
break that up a bit until you isolate exactly which function call is the
problem. Then go into that function and do the same thing, etc. Most of
the time here is spent recompiling....
Richard
Richard