.NET news » Performance Performance Rss Feed

download

Identifying NHibernate-Related Bottlenecks through Performance Monitoring

A distilled methodology for detecting and isolating NHibernate-related performance and scalability issues

Simple Performance Chart

The Simple Performance Chart is a UserControl that is designed and developed to display varying performance data like reads per second on a disk drive, the bandwidth for a server, or free CPU resources, in a visual, clean manner. It can be controlled by a built-in Timer, which makes synchronized display of values possible. The control offers several formatting options like border style, line colors and styles, widths, a background gradient, and so on.
8 Feb 2007, 17:39:00   Source: Simple Performance Chart   Tags: Examples Performance

Optimizing integer divisions with Multiply Shift in C#

An article on improving the performance of an algorithm by replacing integer divisions
2 Feb 2007, 20:55:00   Source: Optimizing integer divisions with Multiply Shift in C#   Tags: C# Performance

Speed Testing and the Stopwatch Class

Software must operate at a speed that is acceptable to the end user. Often large improvements can be made by improving the speed of short-lived but heavily used routines. The speed of these can be accurately measured using the .NET 2.0 Stopwatch class.
20 Jan 2007, 05:40:26   Source: Speed Testing and the Stopwatch Class   Tags: Performance

Improving ASP.NET Application Performance and Scalability

Explore ways to reduce page load time, manage state efficiently, scale back on memory use, handle resources better, and improve data access in your ASP.NET applications.

Some Useful Concurrency Classes and A Small Testbench

Useful concurrency classes and small test bench in C#
15 Jan 2007, 18:20:00   Source: Some Useful Concurrency Classes and A Small Testbench   Tags: C# Performance

Implementing the CLR Asynchronous Programming Model

Slow and unpredictable are words that typically characterize I/O operations. When an application performs a synchronous I/O operation, the application is basically giving up control to the device that is doing the actual work. For example, if an application calls the StreamRead method to read some bytes from a FileStream or NetworkStream, there is no telling how much time will pass before that method returns. If the file being read is on a local hard drive, then Read may return almost immediately. If the remote server housing the file is offline, then the Read method may wait several minutes before timing out and throwing an exception. During this time, the thread making the synchronous request is tied up. If that thread is the UI thread, the application is frozen and stops responding to user input.

A thread waiting for synchronous I/O to complete is blocked, which means that thread is idle but is not allowed to perform useful work. To improve scalability, many application developers create more threads. Unfortunately, each thread introduces significant overhead such as its kernel object, user-mode and kernel-mode stacks, increased context switching, the calling of DllMain methods with thread attach/detach notifications, and so on. The result is actually reduced scalability.

An application that wishes to remain responsive to the user, improve scalability and throughput, and increase reliability should not perform I/O operations synchronously. Instead, the application should use the common language runtime (CLR) Asynchronous Programming Model (APM) to perform asynchronous I/O operations..

14 Jan 2007, 18:00:00   Source: Implementing the CLR Asynchronous Programming Model   Tags: Performance

Use SQL Parameters to Overcome Ad Hoc Performance Issues

Defining (rather loosely) ad hoc queries as SQL commands built as strings by an SQL client application and submitted to SQL Server.

Pure C# MiniLZO port

Fast stream compression using a ported minilzo for .NET.
22 Dec 2006, 15:05:00   Source: Pure C# MiniLZO port   Tags: Performance

ASP.NET AJAX under the hood secrets

Performance tips and hard-core tricks that change core runtimes, not for the faint hearted.
22 Dec 2006, 09:47:00   Source: ASP.NET AJAX under the hood secrets   Tags: Ajax Performance