On Tue, 2004-11-30 at 15:29 +0200, Nerijus Baliunas wrote: > On Tue, 30 Nov 2004 14:56:04 +0200 Mart Raudsepp <[EMAIL PROTECTED]> wrote: > > > Hmm, right, seems to take ages, yes. > > However before InsertURL it takes the most time. > > But w/o Quotes and URLs filter it's fast, yes? If it's not wxTextCtrl > text attributes, what then? As with gtk1 it is fast even with Quotes > and URLs filter...
If Quotes/URLs filter isn't on, how is the text added then? All in one wxTextCtrl::AppendText? At any rate, it is inside wxGTK and this forwarded message I got with Mahogany is a nice testcase for working on wxTextCtrl efficiency. What I noticed from the Mahogany side is, that when I first select the message, QuoteURLFilter::DoProcess is called once. When I re-enable Quotes and URLs from the view->filters menu it calls QuoteURLFilter::DoProcess twice! I'm not sure if reenable from the menu is the case when it calls it twice, but in some cases it does, that I'm sure of. One call on my computer takes 49-50 seconds with debugging symbols and profiling information being generated. Now add to that anoter 50 seconds in some cases for no apparent reason... With my "Better GtkTextTag handling in wxTextCtrl" patch the time seemingly lowers to 47-49 seconds. This is understandable as the style isn't really different. With that and with a hack into M to freeze/thaw the text control at the right time it takes also about 47-49. I won't try to guess why it is so but it seems reasonable that in this testcase it doesn't give a noticable effect. 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. Now must go to the office. Bother. This is so much more interesting :) -- With regards, Mart Raudsepp Project manager of wxMUD E-mail: [EMAIL PROTECTED] http://wxmud.sourceforge.net/ ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Mahogany-Developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mahogany-developers
