1 Dec 2004 05:01
Re: Re[6]: [wx-dev] GTK2 wxTextCtrl patches outstanding
Mart Raudsepp <leio <at> dustbite.net>
2004-12-01 04:01:45 GMT
2004-12-01 04:01:45 GMT
> I'll look into wxTextCtrl::WriteText (that gets called by AppendText > right after the insertion point is moved to the end) as soon as I have a > chance. Ok. I'm done with tracking. It's right inside gtk_text_buffer_insert Postponing the investigation of this due to it's level of difficulty compared to other matters at hand. I am 95% sure it's gtk+ problem. What makes me wonder is that google doesn't seem to know anything about it. It does all sorts of things inside _gtk_text_btree_insert for some reason. Meanwhile Mahogany can be made usable with the text viewer by: * Making it not process the text twice in some occasions * Calling wxTextCtrl::AppendText as less as possibly, that is it shouldn't be called once for each line if lines have the same style really, but only once per _real_ style change. With the sample message I was sent should then render at least 50 times quicker, most probably more. Without the Quotes and URL filter the message is written with just some AppendText's. With the filter turned on, at least once per line. * Alternatively even better instead of the previous point is to write all and then style it with SetStyle. See below. Each AppendText call costs some time in milliseconds, starting from zero and raising gradually when called on a larger buffer. In case of the sample message I was sent, maxing out at around 90 milliseconds. The(Continue reading)
RSS Feed