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.
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

> Also, this comment from Michael Wojcik* makes me wonder if maybe mathed 
> does something special with lyxerr... any clue someone?

If anything is special then the WriteStream. I believe it is also used with 
lyxerr, but I believe also that Michael meant debug output in general. 
This happens also in Linux, if you write a lot of stuff to the terminal 
your program can get really slow.


Georg

Reply via email to