C# Corner

Resources  
  • Effective C#: Working with StringsMar 12, 2001. Using string might degrade the performance of your application. This article explains about what precautions you should take when you are going to use strings in your application.
  • Compilation and Runtime Execution of a C-Sharp ProgramApr 10, 2001. C-Sharp (C#) is a strongly typed object-oriented programming language designed to give optimum composition of simplicity, expressiveness and performance.
  • Boxing and Performance of CollectionsMar 14, 2002. In this article, I will compare some performance issues of values and references types during boxing and unboxing operations.
  • .NET Remoting: The Interface ApproachMar 26, 2002. .NET Remoting provides a powerful and high performance way of working with remote objects. Architecturally, .NET Remote objects are a perfect fit for accessing resources across the network without the overhead posed by SOAP based Web services. .NET Remoting is easier to use than Java's RMI, but definitely more difficult than creating a WebService. In this article, we will create a remote object, and access this object using the Interface.
  • .NET Remoting: The Simple ApproachMar 26, 2002. .NET Remoting provides a powerful and high performance way of working with remote objects. Architecturally, .NET Remote objects are a perfect fit for accessing resources across the network without the overhead posed by SOAP based Web services.
  • Asteroids in C#Apr 04, 2002. As my first experiment in a game design, rather than using a DirectX wrapper, I decided to explore the functionality of GDI+. GDI+ has lot of nice features to offer but performance wise it is slow. So GDI+ may not be a good idea to develop practical fast paced games. This game also includes sounds.
  • Performance Comparison of XslTransform InputsMay 02, 2002. To transform XML into HTML for use on a Web site or to transform it into a document that contains only the fields required you could use the XSLTransform class (found in the System.Xml.Xsl namespace).
  • Performance Comparison of XslTransform InputsMay 02, 2002. To transform XML into HTML for use on a Web site or to transform it into a document that contains only the fields required you could use the XSLTransform class (found in the System.Xml.Xsl namespace).
  • .NET Performance Counters, Part 1: Predefined CLR Performance CountersMay 13, 2002. In this article, I will describe what a performance counter is and introduce you to the predefined counters that you can use to monitor the state of the CLR while your applications run.
  • ADO.NET From Windows DNA's PerspectiveJun 12, 2002. Windows DNA is a framework to build multi-tier, high performance, scalable distributed applications over the network. This article takes a Windows DNA perspective and compares how ADO.NET fits in Windows DNA.
  • Form Designer in C# and .NETSep 02, 2002. The FormMaker.NET Application has an undo feature for removing controls you just placed on the form and a fine tuning placement mechanism for positioning the control through the arrow keys.
  • Remoting Calls RecommendationsSep 19, 2002. The goal of this article is not to describe remoting technology in details. It is more focused at the practical design and implementation mistakes during development process concerning garbage collection and performance.
  • Remoting Calls RecommendationSep 19, 2002. The goal of this article is not to describe remoting technology in details. It is more focused at the practical design and implementation mistakes development process concerning garbage collection and performance.
  • Working with Win32 API in .NETNov 21, 2002. Windows exposes lots of functionality in the form of Win32 API. Using these API you can perform direct operation in windows, which increases performance of your application.
  • Caution When Using SetParentRow of a DataSetJan 13, 2003. I had a serious performance killer when using SetParentRow in the creation of a DataSet in ADO.NET.
  • Iterations and Performance in .NETApr 15, 2003. I’ve been implementing numerical libraries in .NET and have come to some conclusions about iteration performance.
  • Boxing and Unboxing of Value Types : What You Need to Know?Jul 21, 2003. Programmers new to C# can encounter less than ideal performance and even unexpected results due to boxing and unboxing of value types.
  • Debugging a Compiled ComponentFeb 02, 2004. After an assembly is compiled into a dll in a release mode, it is very difficult to gather information from it such as runtime performance, parameters values, etc.
  • Oracle Data Provider for .NET : Part IVFeb 20, 2004. Oracle Data Provider for .NET (ODP.NET) is an implementation of a data provider for the Oracle database. ODP.NET uses Oracle native APIs to offer fast and reliable access to Oracle data and features from any .NET application.
  • Report Generation in .NETFeb 27, 2004. Report generation is an integral part of enterprise application development. Choosing the right kind of report generation strategy decides the success of the application in terms of cost and performance. The white paper discusses some of the key factors that need to be considered when architecting reporting systems in .NET and C#.
  • Understanding .NET Framework at a glanceMay 05, 2004. In this article we are going to look at Microsoft .NET Framework. This is the newly established software development environment which helps developers to develop applications quickly and gives optimum, efficient, scalable, performance oriented applications in different languages like Visual Basic .NET, C#, ASP .NET, and Jscript .NET.
  • Microsoft Application Center TestOct 13, 2004. Application Center Test (ACT) stress tests Web servers and analyze performance and scalability problems of Web applications. ACT simulates a large group of users by opening multiple connections to the server and rapidly sending HTTP requests. It also supports several other authentication schemes and the SSL protocol, making it ideal for testing personalized and secure sites.
  • Performance Improvement in ASP.NET Using CachingFeb 01, 2005. ASP.NET provides caching at several levels for you to leverage and improve the responsiveness of your application by storing the page output or application data across HTTP requests and reuse it. This allows the web server to take advantage of processing the request without recreating the information and thus saving time and resources.
  • Measure Web Service Performance using NetMonMay 03, 2005. This article gives an idea how to identify the performance of web method calls by using NETMon tool.
  • New Dataset features in ADO.Net 2.0Aug 22, 2005. ADO.NET class libraries are used for accessing data from a wide range of data sources. One of the best features in ADO.Net is DataSet.Even though it was an exciting feature, performance was a concern with DataSet. Lets look some changes made to DataSet in ADO.Net in this article.
  • Glue IIS with Business Logical Tier using Batching, Asynchrony, and Parallel ComputationOct 26, 2005. A great and unusual way to boost your web application performance and scalability five times or more.
  • Navigating Data Grid using Client ScriptingNov 10, 2005. It's very common practice to use the Data Grid to present data over web pages. Though the Data Grid is provides the richer UI presentation if not coded and handled effectively it can have great performance issues. This article gives the code sample for navigating the data grid using the Client Scripting (thereby can be used for lots of validation before doing the Post Back to the server) and minimizing the round trip to server
  • C# Heap(ing) Vs Stack(ing) in .NET: Part IJan 14, 2006. Even though with the .NET framework we don't have to actively worry about memory management and garbage collection (GC), we still have to keep memory management and GC in mind in order to optimize the performance of our applications.
  • The C# Value Type and BoxingFeb 17, 2006. Even though with the .NET framework we don't have to actively worry about memory management and garbage collection (GC), we still have to keep memory management and GC in mind in order to optimize the performance of our applications. One of the things we need to be aware of is how the Common Language Runtime (CLR) deals with references to value types.
  • Tips to Improve the Performance of ASP.Net ApplicationMay 12, 2006. This article features tips to improve the performance of ASP.Net Application
  • Merging data into single table from multiple tables (resultsets)May 15, 2006. This article shows how to reduce the number of trips to improve performance by merging data into single table from multiple tables (resultsets).
  • Best Practices of Compact FrameworkMay 17, 2006. This shares a few recommendations for use in our day to day development of Compact Framework applications.
  • Display Process list and Processor Performance in C#Jun 14, 2006. This article shows how to display Processes list and performance of processor exactly.
  • Streamlining Web Application PerformanceJun 29, 2006. This article discusses some performance tuning tips for those who use ASP.NET as front-end and Microsoft SQL Server as back-end to develop their applications.
  • System components performance in ASP.NET using C#Jul 01, 2006. This article shows how to retrieve system properties in a webpage on just singleclick of mouse.
  • Best practices for .Net Performance - IAug 03, 2006. This article gives you an overview of best practices to attain .Net performance.
  • Using Predicates over foreach in ArraysOct 24, 2006. We generally use foreach blocks to iterate through Arrays n Lists in order to operate on them which not only makes our code long n confusing but also makes us compromise on performance. The solution to this lies in Predicates...
  • Monitor and Display CPU State InformationDec 18, 2006. This article describes a quick and simple approach to displaying information about the state of the CPU or CPUs on a targeted machine.
  • Multi-threaded Asynchronous Programming in C#... Getting started.May 12, 2007. Trying to build better solutions and growing as a developer has always been fun for me and I’m always looking for ways to build more scalability and robustness in the software I am writing. I had a revelation that I’ve been doing a lot of C# tweaking but not taking advantage of the core performance enhancements cooked right into C# and it all comes down to one thing: Asynchronous multi-threaded programming.
  • Multi-threaded Asynchronous Programming in C#... Through The Web Page. Part VIJul 27, 2007. Async web pages which are primarily used as a server performance enhancement. There are two main methods we will be looking at that are used to execute operations asynchronously from web pages: Page.AddOnPreRenderCompleteAsync() and Page.AddOnPreRenderCompleteAsync().
  • Query Optimization in SQL Server 2005Dec 19, 2007. This article offers suggestions on how to optimize query performance in SQL Server 2005.
  • Caching in ASP.NET 2.0Jan 08, 2008. Caching is a technique of storing a copy of data in memory. You could cache a page or the results of a query. The advantage of caching is to build better performance into your application.
  • High Performance Abstraction Layer for Non-Blocking Asynchronous Thread Safe SqlServer CallsApr 25, 2008. One of the things I find myself doing frequently is writing (and re-writing) plumbing code to execute database CRUD operations. I wrote an abstraction layer over asynchronous SqlServer calls that allows developers to correctly make async calls agains SqlServer without having to deal with any of the complex plumbing normally required. All source code is included with this article.
  • Avoid casting to improve code performanceMay 19, 2008. Casting is a big problem when it comes to the code performance. This article talks about how we can take advantage of generics in C# 2.0 to avoid casting.
  • SQL Server Effective Database Tune up and MaintenanceAug 08, 2008. Here are a few tips for developers that are not a professional DBA but have been assigned the responsibility for the database for some reason.
  • Working of Garbage Collector - Part IISep 24, 2008. this article explains you how garbage collector is well tuned for its maximum performance
  • Caching in ASP.NET 2.0Sep 25, 2008. This article discusses basics of caching in ASP.NET 2.0 and 3.5 and how to use it in our application to improve the application performance.
  • Materialized Views in Database SystemsOct 30, 2008. This article is intended to illustrate the concepts of materialized views in database systems and their realization through examples written for SQL Server and Oracle database systems.
  • Performance Tuning in Database SystemsNov 08, 2008. In this article, we’re going to learn the principles and techniques you can use to help troubleshoot and evaluate query performance by illustrating examples in Microsoft SQL Server and Oracle database.
  • Custom paging in ASP.NET 2.0 and SQL Server 2005 using ObjectDataSourceApr 13, 2009. This article is intended to show how to apply the paging mechanisms in Web applications using ASP.NET 2.0 and SQL Server 2005 as well as using the ObjectDataSource components.
  • Extending Logging Functionality From Enterprise LibraryApr 17, 2009. The Microsfot Enterprise Library provide us a collection of reusable software components, so software developers can take advantage of them to put them into enterprise use. Now I will share my personal experiences with my friends of how to extend current enterprise library functionality and improve the performance of enterprise applications.
  • Parameters for ObjectDataSource in ASP.NET 2.0Apr 30, 2009. This article is intended to show how to invoke server-side methods (expecting input parameters) stored in the SQL Server 2005 Management System using the ObjectDataSource components.
  • Faster Performance of Deployed ASP.Net SitesMay 14, 2009. This article provides a few tips to ensure your deployed ASP.Net always runs with the best possible performance and no security information leakages.
  • Stream operation in WCFJun 01, 2009. WCF provides the support for Stream object. It typically recommends the developer to handle the message which size is too large as Stream object for the sake of high performance. However, there are some constraints on Stream operation to note.
  • How to improve your LINQ query performance by 5 X times ?Jul 17, 2009. LINQ has been criticized by many early adopters for its performance issues. Well if you are just going to drag and drop using DBML code generator I am sure you will land up in to mess. Try doing this make a simple LINQ to SQL project using DBML and see your SQL profiler, I am sure you will never like to touch DBML code generator again. In this article we will first look in to how LINQ queries are executed, and then we will touch base on how compiled LINQ queries can help us improve our application performance at least 5 times. My numbers can be 10% up and down as I had come to that figure using my environmental situations.
  • Tips to Improve the Performance of an ASP.Net ApplicationJul 29, 2009. This article provides some tips to improve ASP.Net application performance.
  • Inserting records in a database using stored procedure and ADO.NET technology.Aug 13, 2009. In this article I will explain you how to use CommandType stored procedure to insert records in a database in a disconnected manner.
  • .NET Best Practice No: 2:- Improve garbage collector performance using finalize/dispose patternAug 23, 2009. In this article we will first understand the concept of generations and then we will see the finalize dispose pattern. I am sure this article will change your thought process regarding destructor, dispose and finalize.
  • Guide to Improving Code Performance in .NET: Part IAug 25, 2009. This article explains about benefits of using StringBuilder instead of string.
  • Increasing your application performance with the client result_cache feature and ODP.NETAug 31, 2009. In this article, I want to explain how to improve your application performance using Oracle Data Provider for .NET (ODP.NET) and the new features exposed by the underlying Oracle Call Interface.
  • Guide to Improving Code Performance in .NET: Part IISep 01, 2009. This article explains about better Exception Handling practices in C#.
  • .NET Best Practice No: 3:- Using performance counters to gather performance dataSep 02, 2009. This article discusses how we can use performance counter to gather data from an application. So we will first understand the fundamentals and then we will see a simple example from which we will collect some performance data.
  • 4 steps to increase bandwidth performance for ASPX pages on IIS 6.0Sep 07, 2009. In this article we will try to understand how to enable compression on IIS 6.0. Once we have enabled compression we will use fiddler to see how bandwidth performance increases due to the same.
  • Best Practice No 4:- Improve bandwidth performance of ASP.NET sites using IIS compressionSep 16, 2009. Bandwidth performance is one of the critical requirements for every website. In today's time major cost of the website is not hard disk space but its bandwidth. So transferring maximum amount of data over the available bandwidth becomes very critical. In this article we will see how we can use IIS compression to increase bandwidth performance.
  • Creating a Stack-Based ArrayOct 08, 2009. - Learn how to create high-performance stack-based short-lived arrays. - Learn how to work with array pointers. - Learn how to copy arrays many times faster.
  • Monitoring Database Connections using Performance CountersOct 14, 2009. ADO.NET performance counters can be used to monitor the status the connection resources that the application uses. This article concentrates mainly on monitoring database connections.
  • Using PLINQ to Improve Learning AlgorithmsNov 30, 2009. PLINQ is a welcome addition to the .NET 4.0 framework, allowing us to operate on collection elements in parallel. This article examines the performance improvements of PLINQ over LINQ when doing heavy calculations on a large collection of genomes in a particular learning algorithm.
  • 12 Important FAQ on VSTS TestingDec 06, 2009. This article has 12 important FAQ which covers unit testing, automated testing, data driven test, LOAD / performance test, code coverage, database testing and ordered testing.
  • SQL Query Optimization FAQ Part 1 (With video explanation)Feb 02, 2010. In this article we will first try to understand what is a SQL plan, how is it created and then we will move towards understanding how to read the SQL plan. As we read the SQL plan we will try to understand different operators like table scan, index seek scan, clustered scan, RID lookup etc. We will also look in to the best practices associated with clustered and non-clustered indexes and how they function internally. We will practically see how indexed views increase performance and in what scenarios we should use the same.
  • PerformanceCounter in C# Feb 10, 2010. In this article I will explain you about the PerformanceCounter control in C#.
  • Crystal Reports: 5 Tests for Top PerformanceFeb 10, 2010. In this article how to use Crystal Reports: 5 Tests for Top Performance.
  • Crystal Reports: 3 New Uses For Sub ReportsFeb 11, 2010. In this article we will see few novel ways of using sub reports which will not affect performance and actually prove a boon to the developer.
  • Using Compiled Regular ExpressionsFeb 22, 2010. This article explains about how to minimize performance degradation caused by frequently used complex regex using compiled Regular Expressions.
  • 4 Steps to Enable Instrumentation in WCF Mar 14, 2010. Many times we would like to monitor events of WCF application in production environment. We would like to monitor events like errors, security audits, performance etc. This can be achieved by extending the ASP.NET health monitoring system in WCF. The health monitoring system is also termed as instrumentation.
  • Pre-loading Web Applications in ASP.Net 4Mar 22, 2010. In this article, we will get familiar with the new performance enhancement feature in ASP.Net 4 for preloading web applications.
  • LINQ to SQL Performance ConsiderationsApr 01, 2010. This article focuses on some of the performance issues while working with LINQ to SQL.
  • Linq to SQL Performance Considerations: Part IIApr 29, 2010. This article takes a look at what it takes to convert Linq queries to compiled queries and what performance gains can be obtained.
  • Scope and Type of Variable and Performance in GDi+Jul 05, 2010. In this article you will learn how to Scope and Type of Variable and Performance in GDi+.
  • ANTS Profiler by Red Gate gives a Command PerformanceJul 19, 2010. In this article you will learn how to use ANTS Profiler by Red Gate gives a Command Performance.
  • Performance Tuning - Top to Bottom - Visual Studio .NETAug 25, 2010. Here are some top to bottom performance tuning when building applications using Visual Studio .NET.
  • Performance Tuning High Level- SQL SERVERAug 26, 2010. You can view the query execution plan while executing the query in your query analyzer. Through that you can tune your query. It will show you whether the appropriate tables are using the proper index or not.
  • Custom pagingSep 21, 2010. In this article, we'll see the implementation of custom paging on GridView control. The Gridview offers two paging models Default paging and Custom paging.
  • Performance of If-else if tree vs. Switch (multiple variables) in C#Sep 28, 2010. This article demonstrates multiple ways to implement if-else if tree, when there are multiple values to check, and compares their performance to a switch.
  • Black box & White box testingOct 19, 2010. This article provides an insight to Black box & White box testing types.
  • SQLCLR vs. T-SQL - Performance ComparisonDec 09, 2010. Before comparing the performance of SQLCLR and TSQL, just have a quick at the definition of SQLCLR.
  • Performance of Windows Phone 7 ApplicationsJan 05, 2011. This article discusses various ways to improve the performance of WP7 apps.
  • JavaScript and CSS MinifierJan 31, 2011. The CombineAndMinify package discussed here automatically speeds up the loading of JavaScript files, CSS files and or images (loaded from image tags or from CSS files). The result can be a dramatic improvement in ASP.NET performance.
  • Normalization and its Types Mar 15, 2011. Normalization is the process of organizing data into a related table; it also eliminates redundancy and increases the integrity which improves performance of the query.
  • CMMI (Capability Maturity Model Integration)Mar 23, 2011. CMMI defines practices that businesses have implemented on their way to success. Practices cover topics that include collecting and managing requirements, formal decision making, measuring performance, planning work, handling risks, and more.
  • Performance tips for RIA Service with Silverlight 4Apr 08, 2011. A few tips we can use to improve performance. Well mostly we will cover the Pagination and Limiting Query results and Output cache of the results.
  • AutoEventWireUP role and its effects on PerformanceApr 20, 2011. "AutoEventWireUp" is a very familiar word to ASP.Net native developers. They can find it in the @Page directive at the top of the page.
  • Performance Engineering ToolsApr 20, 2011. In this article let’s discuss various tools that help to analyze performance issues in web applications.
  • What's New in Silverlight 5? - Performance and Other ImprovementsMay 19, 2011. In this article, we’ll have a brief discussion of the performance, networking, and other improvements in Silverlight 5.
  • Single Dimensional Array PerformanceJun 05, 2011. Here you will see single dimensional array performance.
  • Create an Analysis Services ProjectJun 13, 2011. SQL Server Analysis Services (SSAS) provides a unified and integrated view of all your business data as the foundation for all of your traditional reporting, online analytical processing (OLAP) analysis, Key Performance Indicator (KPI) scorecards, and data mining.
  • Windows Azure - Adding Affinity Groups in Azure PortalJun 22, 2011. In this article we are going to see what an affinity group is and how to make use of it for better performance and adding a new affinity group in Azure Management Portal
  • DATABASE TUNNING - Maintenance Plan (SQL SERVER 2005)Jun 24, 2011. The purpose of this article is to describe ways to improve the performance of a database such as by the defragmentation of the data in the database, transaction log removal from a log to make room for incoming records and backup of the database. Also prevention of log errors.
  • DATABASE TUNING - Maintenance PlanJun 28, 2011. To improve the performance of a database, such as defragmentation of the data inside the database and transaction log removal from the log to make room for incoming records and backup of the database.
  • SharePoint 2010 Content DataBase Performance ConsiderationsJul 23, 2011. Here you will see DataBase Performance Considerations of SharePoint 2010 Content.
  • Monitoring features of SharePoint 2010Aug 29, 2011. In this article i am describing about some of the monitoring features of SharePoint 2010.Diagnostic logging captures data about the state of the system, whereas health and usage data collection uses specific timer jobs to perform monitoring tasks, collecting information such as Performance Counter Factors,Event Log Data, Timer Service Data,Search Usage Data,Metrics For Site Collections and Sites

About performance-tuning

NA

SPONSORED BY

Spire.Doc - Free .NET Word API
Use Spire.Doc to create, read, write, print, and convert word documents to OpenXML, RTF, TXT, XPS, EPUB, EMF, HTML, Image and PDF.
Download Free eBooks