.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Improving Application Performance in .Net

Posted By: Rahul     Posted Date: December 11, 2009    Points: 2   Category :ASP.Net
Application performance has always been a concern for Web Application developers. This article contains guidelines and tips for maximizing application performance in ASP.NET.

View Complete Post

More Related Resource Links

CLR Inside Out: Improving Application Startup Performance


Application startup performance matters to users, and there's plenty you can do to improve it. Here's a look at where to begin.

Claudio Caldato

MSDN Magazine March 2008

High-Performance .NET Application Development & Architecture

It has always been a goal of project architects to plan an effective strategy from the ground up in regards to an new application. All relevant factors are taken into consideration with respect to the application, from its design and layout to a functional website infrastructure. Pre-.NET strategies and design guidelines still effective now were developed with Microsoft's DNA (Distributed interNet Application) platform. This model successfully served the purpose of architecting N(any number of)-Tier (levels) applications. In its basic sense, as in most robust, distributed applications, you'll architect 3 main layers or Tiers: presentation, business rules and data access.

Performance Tuning on DirectShow Camera Application

Windows CE 6.0 supports DirectShow® components to develop a rich camera application. A minimum requirement of the camera application is to show preview, capturing the still images which is stored as a compressed file (JPG) format, capturing/multiplexing the video with or without audio i.e. stored as a compressed file (WMV) format.

Windows CE 6.0 provides sample applications for showing preview, capturing still and video using DirectShow® components. However these sample applications doesn't cover all the aspects to develop a commercial application. A commercial camera application at least satisfies the following performance criteria.

Performance: Find Application Bottlenecks with Visual Studio Profiler


We will introduce you to the Visual Studio Profiler by walking through a sample performance investigation, pinpointing code inefficiencies in some sample applications.

Hari Pulapaka and Boris Vidolov

MSDN Magazine March 2008

SQL Server: Uncover Hidden Data to Optimize Application Performance


SQL Server 2005 gathers a lot of useful data that you can use to identify areas where database performance can be improved. Here's what you need to improve performance.

Ian Stirk

MSDN Magazine January 2008

CLR Inside Out: Improving Application Startup Time


Visual Studio is a wonderful development environment, whose IntelliSense®, integrated debugging, online help, and code snippets help boost your performance as a developer. But just because you're writing code fast doesn't mean you're writing fast code.

Claudio Caldato

MSDN Magazine February 2006

{ End Bracket }: Improving Managed DirectX Performance


It seems that at least twice a week, I am asked about poor performance in Managed DirectX®. This frequency is actually a big improvement over the 5-10 times a week I was asked a few years ago when the technology first came out.

Tom Miller

MSDN Magazine August 2005

.NET CLR Profiling Services: Track Your Managed Components to Boost Application Performance


The Microsoft .NET platform provides you with a rich set of services for building profilers and application monitors for applications targeting the Common Language Runtime (CLR). These services expose runtime events that occur during the execution of a .NET application. They can be used to obtain information about managed code being executed under the runtime. This article describes the .NET CLR Profiling Services and shows how to use the services to build a simple profiler that will provide hot spot information for any .NET application. The sample profiler can easily be modified to suit other profiling and monitoring needs.

Anastasios Kasiolas

MSDN Magazine November 2001

Tip #107 Did you know . How to improve debugging performance for MVC2 application in Visual Studio 2

VS2010 Ultimate included IntelliTrace functionality by default.  IntelliTrace captures events (e.g. exceptions), and can affect performance of debugging. The typical performance hit is about 5% in the default mode (collection can be increased to...(read more)

Improving performance of UPDATE CUBE by executing preceding CREATE CACHE for the same cell / subcube

Hi All, Recently I came across one of suggestions by Microsoft Advisory consultant regarding optimization data write-back pattern for the SSAS cubes. It was recommended issuing CREATE CACHE command following by UPDATE CUBE for the same cell/subcube definition: CREATE CACHE FOR [MYCUBE] AS ("Cross join of all the dimension members defining subcube to be updated") UPDATE CUBE [MYCUBE] SET ("Cell") = 100, ("Another Cell") = 200,... etc. for every cell. This seems quite weird, but based on our benchmark the entire process (CREATE CACHE and UPDATE CUBE) takes less time than just UPDATE CACHE. Folks, can someone advice on the insights of the process? Shell this approach to be suggested for an enterprise-level planning application? Regards, -h

The WCF serialization has a bad performance on 64Bit computer as 64Bit application ?


   My application has a bad performance while running on the 64bit computer as 64bit application. And I found the reason is that the WCF serialization of contract took most of the time.  The serialization and de-serialization's performance is worse than running as 32bit application on the 64bit computer.

   I wrote a demo to record the consuming time of serialization and de-serialization of contract. The application running as 64Bit took about twice time than running as 32Bit application. I don't know why the performance of WCF serialization of contract is so much different between 32Bit  application and 64bit application. Has anyone encountered this issue?  

   the part of demo code:

 public static void Read(DataContractSerializer serializera, MemoryStream stream,string description,int time)
      stream.Position = 0;
      Stopwatch watch;
      using (XmlDictionaryReader reader =
         XmlDictionaryReader.CreateTextReader(stream, XmlDictionaryReaderQuotas.Max))
        watch = Stopwatch.StartNew();

Improving the Start-up Performance of the WPF and Silverlight Designer in Visual Studio 2010 Beta 2


IMPORTANT NOTE: the Beta and Release Candidate builds of Visual Studio 2010 are now obsolete, since Visual Studio 2010 has now released to manufacturing.

See http://www.microsoft.com/visualstudio/en-us/download


NOTE: The Release Candidate and RTM builds of Visual Studio 2010 does not need this configuration change

This post is to let you know about a configuration change (registry switch) which you can use to improve the startup performance of the WPF and Silverlight Designer in Visual Studio 2010 Beta 2.

1. Since this was a late-breaking change, you may experience some instability or increased Virtual Memory usage in some Visual Studio scenarios when using it. If you see such instabilities, please try removing the configuration change, and let us know about the problem you saw (you can do this by replying to this posting or by raising a bug on Connect).

2. You should only make this configuration change if you are a regular user of the WPF and Silverlight Designer, and are experiencing poor performance with it.

3. This configu

WCF, Silverlight 4.0, in ASP.NET: Application performance


Hai my dearest friends,

  I am developing a web application which will be available through SaaS Model. So there can be more than 1L users for this.

 I am familiar with JSON, and my clients want to use the application without any performance issue.

I was planning to implement it in JSON. But, later i came to know that Silverlight is performing much faster than JSON and while using it with WCF i can improve the performance much more.

Can anybody give me an exact solution for this issue please?

I am totally new to Silverlight and WCF. Please tell me how can i proceed through it.



performance issues with calling java webservices from WPF application?


I'm experiencing some major performance issues when calling a Java webservice from my WPF application. If I call the same webservice from a Java test application, I get a return in under 1 second. If I create a new .NET console application and make the same service call, I get a return in under 1 second as well:

class Program
 public Program()

 static void Main(string[] args)
  MyService svc = new MyService();
  for (int i = 0; i < 10; i++)
  Console.WriteLine("calling echo()");
  DateTime startTime = DateTime.Now;
  string result = svc.echo("Test " + i);
  DateTime endTime = DateTime.Now;
  TimeSpan ts = endTime.Subtract(startTime);
  Console.WriteLine("Execution Time = " + ts.TotalSeconds + " seconds, result=" + result);

However, when I try to call this same service from a WPF application, my response times range from 6-8 seconds. I tried moving the webservice calls to a BGW thread without any luck. I'm running the sample WPF application on the same machine as the sample .NET console application so it's not a network-related issue. Can someone explain why the execution times of calling the Java webservice below is so much slower when done from within a WPF application?

public partial class MainWindow : Window
 private MyServi

Performance tests on asp.net application



I'm about to create new asp.net modules in an existing asp.net application  (Visual Studio 2008 professional, we might be upgrading to VS 2010). In some pages I'm gonna have to retrieve data from sql server 2008 database, and show them in a GridView or other... sometimes I'll have up to 4000 row to load in a sigle GridView.

I've been doing some research on how I can do some performance tests (never done any before, but I'm familiar with unit tests).

I found ATC, available in VS .Net Entreprise Developer if I'm not mistaken. I also found this in MSDN library, but it says Visual Studio 2003, I'm not sure it applies to 2008 too.

So, my question is : how can I do performance tests in a simple way on my web application ? what tool would be more appropriate ?



ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend