Posts Tagged ‘performance’

Fixing a slow scrolling DataGridView

Whenever your C#/.NET DataGridView reaches a certain size, it tends to get really slow to scroll. Depending on the speed of your computer this may be more or less noticeable. In an application i did for a client this became a real problem due to a combination of lots of DataGridView cells and fairly slow [...]

Social Icons Digg this page! Add this page to del.icio.us Bookmark this page on Google Bookmark this page on Google

Comments (40)

Understanding thread priorities in C#

Thread priorities in the .NET framework are more complex than many developers think. Setting Thread priority is more than just adjusting the ThreadPriority of a Thread. You also have to take into account the priority of the process to which the threads belong. The ProcessPriorityClass Setting ThreadPriority to one of the values possible with C# [...]

Social Icons Digg this page! Add this page to del.icio.us Bookmark this page on Google Bookmark this page on Google

Comments (2)

String & StringBuilder performance in the Compact Framework

Here’s a few general guidelines when working with strings: Don’t concatenate strings – use a StringBuilder instead Whenever possible initialize the StringBuilder with enough capacity to avoid re-allocations Excessive concatenation of strings will be several orders of magnitude slower than using a StringBuilder String.Format() & StringBuilder.AppendFormat() are significantly slower than just using the +operator or [...]

Social Icons Digg this page! Add this page to del.icio.us Bookmark this page on Google Bookmark this page on Google

Comments (2)