.NET news » Performance Performance Rss Feed

< 1 2 3 4 5 6 7 8 9 10 11 >
download
StringBuilder vs. String / Fast String Operations with .NET 2.0
Comparision of String/StringBuilder functions. Efficient String handling.
25 Jul 2006, 18:31:00   Source: StringBuilder vs. String / Fast String Operations with...   Tags: Performance
EasyPack - A Pushbutton Batch JavaScript Error Checking, Compression and Obsfucation Tool
EasyPack enables syntax checking, validation, compression and obsfucation of JavaScript files with a single click
System.Diagnostics.Stopwatch - always remember to use Reset
Wrong
        System.Diagnostics.Stopwatch s = new System.Diagnostics.Stopwatch();

        s.Start();
        for (i = 0; i < count; i++) Test1();
        s.Stop();
        Console.WriteLine("Test1: {0}", s.ElapsedMilliseconds);

        s.Start();
        for (i = 0; i < count; i++) Test2();
        s.Stop();

        Console.WriteLine("Test2: {0}", s.ElapsedMilliseconds);
Right
        System.Diagnostics.Stopwatch s = new System.Diagnostics.Stopwatch();

        s.Start();
        for (i = 0; i < count; i++) Test1();
        s.Stop();
        Console.WriteLine("Test1: {0}", s.ElapsedMilliseconds);

        s.Reset();

        s.Start();
        for (i = 0; i < count; i++) Test2();
        s.Stop();

        Console.WriteLine("Test2: {0}", s.ElapsedMilliseconds);
Not that *cough* I would ever make this mistake or anything, but you know... it could happen to like, a friend, or something. Ya. My friend. :)
patterns & practices Guidance Explorer
What are the security and performance proven practices for .NET applications? You can use Guidance Explorer to find out. Guidance Explorer is a tool to help you find and use relevant patterns & practices guidance.
14 Jul 2006, 16:36:55   Source: patterns & practices Guidance Explorer   Tags: Software Security Performance
HTTP Compression - Quick and Dirty Solution
Use HTTP Compression on ASP.NET 2.0 pages
11 Jul 2006, 13:03:00   Source: HTTP Compression - Quick and Dirty Solution   Tags: ASP.NET Performance
ViewState Compression
How to compress the ViewState of ASP.NET pages and save bandwidth
10 Jul 2006, 05:42:00   Source: ViewState Compression   Tags: ASP.NET Performance
A General Fast Method Invoker
Method reflecting invoke is nice, but frequently do it can be too slow. This article describes an alternative method for dynamic method invoke.
27 Jun 2006, 21:49:00   Source: A General Fast Method Invoker   Tags: Performance
Advanced Basics: Monitor Your Apps with System.Diagnostics
The System.Diagnostics namespace provides classes for interacting with event logs, performance counters, and system processes, and can really help when you've got bugs. Find out how.
Fast Dynamic Property Accessors
Fast run-time access to Property Values using the new (.Net 2.0) DynamicMethod class and a very small amount of Emitted IL code.
23 Jun 2006, 22:48:00   Source: Fast Dynamic Property Accessors   Tags: C# Performance
A Fast Serialization Technique
Transparently boosting serialization performance and shrinking the serialized object's size.
19 May 2006, 12:54:00   Source: A Fast Serialization Technique   Tags: Performance
< 1 2 3 4 5 6 7 8 9 10 11 >