[Mono-winforms-list] Too slow performance on RichTextBox?

sharkal wolfgang.ginner at kapsch.net
Tue Mar 27 11:16:16 UTC 2012


Hi,
at the meantime i wrote a small test programm where it does the following:

                while (indexCounter < maxIndexCount)
                {
                    var timestamp = (String.Format("{0:yyMMdd
HH:mm:ss:fff}", DateTime.Now));

                    rtxtOutput.AppendText(indexCounter + "  " + timestamp + 
                                                   " This is a output text
to test the output time.\n");
                    indexCounter++;
                    Thread.Sleep(1);
                }
So the while loop do nothing more, than writing the actual  timestamp to the
textbox, sleep 1ms and write the next text out.
If i do this with mono, i have a time differents of ~ 15-20ms , in windows
it is around 1-2ms. 

The Richtextbox is all with the default settings.
Does anyone knows how to get a better performance here?


--
View this message in context: http://mono.1490590.n4.nabble.com/Too-slow-performance-on-RichTextBox-tp4485123p4508543.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.


More information about the Mono-winforms-list mailing list