Browse by Tags
All Tags »
Performance (RSS)
The .Net framework introduced the GDI+ "framework" for graphics. However, in .Net framework 2.0 Microsoft added a wrapper class to the original GDI called TextRenderer , which is claimed to be a lot faster than GDI+ , specifically using the TextRenderer.DrawText method instead of Graphics.DrawString . In a first reading it may also appear articles published in MSDN magazine advocate to use it as a faster alternative. After doing some testing I found out there is a pitfall to this approach...
After creating a custom UDP mulitcast channel using WCF I ran some tests. I used this sample data contract class: string Name string Description ushort Id double X double Y double VX double VY uint Flags DateTime CreatedTime DateTime UpdateTime Benchmark Results: Max amount of sent objects per second using 100mbit hub (using Intel 3Ghz HT CPU - not dual core): 46000 CPU load during peak sending - 15-25% Effect of zip encoding - 50% less bandwidth with random values (probably 60-70% reduction in a...
The application I'm working on is a C4I, GIS based application, originally written in framework 1.1. Recently we did several tests to prove the improvements derived from upgrading to framework 2.0 (or 3.0) without doing major changes in the base code. The performance improvement focus was on switching to Generics for collections containing value types. Possible pitfalls - mostly the usage of Hashtable and other 1.1 collections, which tend to return NULL when the key is not found. Unlike them...
Jeff Atwood (CodingHorror) complained about the fact a caching addon for Wordpress is optional, and is not included in the basic software: Personally, I think it's absolutely irresponsible that WP-Cache like functionality isn't already built into WordPress. I would not even consider deploying WordPress anywhere without it. And why is that? This is an incredibly scary result; blog.stackoverflow.com is getting, at best, a moderate trickle of incoming traffic . It's barely linked anywhere...
After going this week to the Microsoft performance open house , here are few things to consider: Create performance counters of your own to measure various statistics. Try to avoid using interfaces and virtual methods to supports inlining . If you use a "Contains" method on a collection of structs, be sure to override the "Equals" method, since the default Object.Eqauls method used boxing twice - once for the parameter and the once for " this ". Similarly, you should...
בעיות ביצועים עם מחלקת Random I have became aware recently to a performance problem with the Random class, specifically the Random. NextBytes method. As it turns out this is an expansive operation: The graph displays the number of milliseconds used to perform 10,000,000 operations. The NextBytes method handle a byte array containing only 4 bytes. This is linear - using an array of 4000 bytes will take 1000 times longer to complete the operation! However, there may be a work-around using the BitConverter...