Bug 4146 - Performance problems with RichTextBoxes.AppendText und Linux
Summary: Performance problems with RichTextBoxes.AppendText und Linux
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: Windows.Forms ()
Version: 2.10.x
Hardware: PC Linux
: Lowest normal
Target Milestone: Community
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-03-29 06:49 UTC by Karl Lueger
Modified: 2017-09-01 11:56 UTC (History)
1 user (show)

Tags: mono-community
Is this bug a regression?: ---
Last known good build:


Attachments
The test program illustrating the performance loss. (19.88 KB, application/x-zip-compressed)
2012-03-29 06:49 UTC, Karl Lueger
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 4146 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description Karl Lueger 2012-03-29 06:49:57 UTC
Created attachment 1601 [details]
The test program illustrating the performance loss.

We are developing a GUI application logging frames sent by remote Devices. We developing the linux part with Mono for Visual Studio 2008.

currently we are using

- Mono for Visual Studio 2008 Version 2.0.7180

- OpenSuse 11.4, Mono JIT xompiler version 2.10.6 or 2.8.2

Desktop computer properties:
3,5 GB RAM, 4x 2.83 GHz, Windows 7 32-bit

We have serious performance problems when writing text into a RichTextBox with a high rate. Now we wrote a test program that just writes lines (~70 characters) into a RichTextBox in a loop. Under Windows everything works fine so far. The rate is about 1 line per milisecond. Under openSuse and Mono the operations slows unacceptably down to a period of about 15ms per line.


What configuration we could perform to get the performance to acceptable rates? Let's say to 300-400 lines per second. Any Advice? Is it a defect?

I attached a test program. With this you can reproduce the observed behavior (see method btnStart_Click). To show that no other parts of the loop causing the problem we alternatively wrote the same stream to a file. In this case the lines are written at given rate without obvious performance loss. You can easily sitch between two modes (writting to file or to RichTextBox).