Welcome to MSDN Blogs Sign in | Join | Help

July 2006 - Posts

Rico's thought for today

I've said this before but I like it so much I thought I'd post it for posterity :) "Never use the advice of some loudmouth perf expert like me when you could do a nice solid measurement instead." Maybe I'll get it as a tattoo :)
Posted by ricom | 2 Comments
Filed under: ,

A nice little article on the fallacy of premature optimization

Randall Hyde writes this very interesting article where he expounds on some notions I've often discussed in my talks. I'd definately say that our thoughts are one on the subject. My favorite bit is this little line portion: 'Note, however, that [Sir Tony]
Posted by ricom | 5 Comments
Filed under:

Performance Signatures: A Qualitative Approach to Dependency Guidance

I've been working on an idea here in my "spare" time for quite some time now -- basically in response to the fact that there is so much .NET Framework to cover and so little in the way of pervasive performance information about it. Time and again I'm
Posted by ricom | 4 Comments
Filed under:

Throughput and Latency Considerations: Errata

Well hats off to Ian Griffiths who pointed out that I had screwed up my math in my previous posting . When I went back to double check I found that I had made two fatal mistakes. Now I went back and used a better technique which I present below but --
Posted by ricom | 2 Comments
Filed under:

Throughput and Latency Considerations

You know a funny thing happened when I joined the CLR team a few years ago. After working in MSN 7 years and coming back to the developer division, they decided that they wanted me to work on performance on the desktop. I thought for sure they were going
Posted by ricom | 8 Comments
Filed under:

Glass Houses

In his article Glass houses are great places to throw stones Raymond writes in part: Whenever I write an article explaining that programs should avoid doing X, I can confidently rely on a comment saying, " Well, Microsoft Product Q does this !" as if
Posted by ricom | 0 Comments
Filed under:

Performance Quiz #10 -- Thread local storage -- Solution

I actually posted quiz #10 quite a while ago but a comment with the correct solution came in so quickly that I wasn't very motivated to post a followup. There are excellent links in the comments (thank you readers!) But now I'll have to make the quizzes
Posted by ricom | 6 Comments
Filed under: ,

System.Diagnostics.Stopwatch -- always remeber 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();
Posted by ricom | 12 Comments
Filed under:

Should you move to a 64 bit platform?

Josh Williams wrote a nice summary of the big performance issues when considering x64. It's very succinct but it hits the main hightlights, especially worth noticing is the effect cache size reduction due to pointer inflation competing against the general
Posted by ricom | 0 Comments
Filed under:

Posting suggestions for the future

Several people in my department went to Teched and they came back with some general impressions of what kinds of performance problems our customers were encountering broadly. Of course they also came back with impressions in other areas but those are
Posted by ricom | 14 Comments

Cost of array bounds checking -- one experiment

Sometimes people ask me what the overhead of array range checking is. A while ago I did a quickish experiment to measure the cost of the bounds checking introduced by the JIT in a typical application. This is just one part of the managed safety net but
Posted by ricom | 11 Comments
Filed under:
 
Page view tracker