Georg Baum wrote:
Am Dienstag, 7. November 2006 16:43 schrieb Abdelrazak Younes:As my painting investigation continue, it seems that this problem has _nothing_ to do with painting on screen at all. Modifying a text line between two huge formula exhibits the slow behaviour even if only the text line is repainted on screen (you can use "-dbg painting" to make sure of that.I guess this could be related to the data memory models used in mathed. Maybe some big tables created/deleted on the fly?AFAIK no big tables, but in mathed we have many of insets. A single formula can contain 20 or so (and then it is not too big), so a bigger document can contain a 4-digit number of math insets This is different from text, where we have only few insets and most stuff is composed of ordinary characters.
Interesting.
This could be a problem, but then we should keep in mind that the slowness was not there in 1.3.x, and the inset structure in mathed did not change. What did change is the cursor and dociterator stuff, but if that is the problem then I don't understand why cssrs.exe consumes so much time, in that case I would rather expect that it is only in lyx.exe
The cursor and dociterator pist is a good one I think. I attach again the test file. At the end of file, appending characters at the end of the last line is _slow_ but hitting return and typing in a new line is very quick (as quick as usual I mean). So the relationship between two consecutive paragraph is the key to our problem I think.
The good side of the problem is that 1.5svn is _really_ faster than 1.4.3 with this file.
Abdel.
attachment.lyx
Description: application/lyx
