On Mar 2, 2007, at 10:46 AM, Trenton Schulz wrote:



I will try to check out the performance issue sometime next week as I am away for the weekend and report back.

Still planning on doing this.

I said I would do this :)


-- Trenton


Performance on a 1GHz PPC Mac is acceptable (for the 5 minutes I tried it). It pushes processor usage up to 70%+ when typing fast, but I don't get significant lag. I suspect it would be problematic for something much slower than this.

(I don't know about endianness or troubles it might cause. I didn't notice any problems, though.)

So, I fired up Shark and Quartz Debug to take a look at why things are so slow when moving around in a math formula. It seems that when I'm moving around in normal text, the area around the cursor is updated, which is what I would expect and why moving through normal text is pretty fast. However, if I move into the area for a math expression, it seems that the entire text area is updated followed by the vertical scroll bar. This happens for every single cursor movement, which I can imagine is why it feels so much slower moving through a mathematical expression. I'm not familiar with how LyX does it's drawing, but I would expect that if moving through a math expression would only update a small area of screen (like in normal text or footnotes), things should be a bit snappier.

Hope this is helpful to someone. I'm sorry that I don't have any patches to help, but the time that I can spare for this is rather limited and I think it precludes me from learning the painting architecture in any meaningful way.

Good luck,

-- Trenton

Reply via email to