Rico Mariani's Performance Tidbits

Implying no warranties and conferring no rights: "AS IS" since 1988

  • Rico Mariani's Performance Tidbits

    Behind the Code in August

    • 2 Comments
    What are you if you've already been a has-been? I was on the Behind The Code show five months ago now which was a lot of fun, but this month they've got someone that is even more fun than me :) Peter Spiro: Building great databases. Making great...
  • Rico Mariani's Performance Tidbits

    DLinq (Linq to SQL) Performance (Part 5)

    • 23 Comments
    This posting is the last of what I had planned in this series but I think there are likely to be questions, especially when Orcas Beta 2 is more widely available so we're likely to talk about this some more. First let's talk about the result I got...
  • Rico Mariani's Performance Tidbits

    News About Me

    • 38 Comments
    From time to time things get shuffled around here and I was involved in a recent shuffle that has changed my job yet again. I’ve been working directly on performance in one capacity or another for nearly 5 years now but a few weeks ago I was asked to...
  • Rico Mariani's Performance Tidbits

    DLinq (Linq to SQL) Performance (Part 4)

    • 24 Comments
    Well it's high time I gave you some numbers for the new stuff. In the original benchmark the Linq version was running at 13.62% of the original time. And while I'm discussing that result, Sekiya Sato pointed out an error in my original benchmark (see...
  • Rico Mariani's Performance Tidbits

    DLinq (Linq to SQL) Performance (Part 3)

    • 24 Comments
    I’d like to start with a little housekeeping. Some readers asked me how I made the nifty table in part 2 that showed the costs broken down by major area. It was actually pretty easy to create that table using our profiler. I did 500 iterations of the...
  • Rico Mariani's Performance Tidbits

    DLinq (Linq to SQL) Performance (Part 2)

    • 23 Comments
    So after getting some high level times I started digging into the particulars of the costs more broadly and I ended up studying a very simple query like the below one. Northwinds nw = new Northwinds(conn); var q = from o in nw.Orders where o.OrderId ...
  • Rico Mariani's Performance Tidbits

    Caching Redux

    • 0 Comments
    I got some interesting questions about how to build good middle-tier caches in my inbox last week. I cleaned up the responses a little bit and I'm posting them here because they're actually pretty general. I've written about this before but some things...
  • Rico Mariani's Performance Tidbits

    DLinq (Linq to SQL) Performance (Part 1)

    • 41 Comments
    [ By popular demand, here are links for all 5 parts in the series Part 1 , Part 2 , Part 3 , Part 4 , Part 5 -Rico ] I love Linq. Really. That might scare you because it has all these wacky new constructs and as a performance guy you'd think that I...
  • Rico Mariani's Performance Tidbits

    My time in the spotlight is over :)

    • 0 Comments
    Well as you know I was featured on our Behind The Code show three months ago but alas for me my time as the current feature has come to an end and I am now, officially, a Behind The Code has-been. However it's good company to be in so I suppose I can...
  • Rico Mariani's Performance Tidbits

    Partly sunny, chance of showers, bring an umbrella

    • 5 Comments
    Everyone knows that my 10 rules of performance are measure, measure, measure... etc. 10 times :) OK, well, if you didn't know, now you do. But does that mean that every time you tell someone about performance problems and/or risks that you should be doing...
  • Rico Mariani's Performance Tidbits

    I refuse to have no posting in a month

    • 3 Comments
    So instead I'm putting up this lame posting. Even though I don't have anything exciting for you I actually have a couple of fun things on the burner to come soon and I hope you'll enjoy them. Meanwhile, I want you to know my committment to blogging...
  • Rico Mariani's Performance Tidbits

    Everything I ever needed to know about programming I learned in Gamergarten

    • 6 Comments
    Don't block the user from moving her ship while she fires her laser at the space aliens Don't redraw more of the screen than you have to when the aliens move Make sure the sounds start right away when the buttons are pushed It's better to not...
  • Rico Mariani's Performance Tidbits

    Krzysztof Cwalina on Framework Design

    • 2 Comments
    Krzysztof has been recorded for MS Research and gives an excellent presentation on framework design. The details are on his blog here. Lots of great notes. Contributing annotations to his book on the same subject was one of the more fun things I did last...
  • Rico Mariani's Performance Tidbits

    Synchronization Complexity in the .NET Framework, Part 2

    • 2 Comments
    Well it seems like an eternity ago but at last I'm writing the followup to my initial question about synchronization complexity . I'd like to start with this link to a summary of the synchronization costs of nearly all of the framework. And I say nearly...
  • Rico Mariani's Performance Tidbits

    Behind The Code

    • 4 Comments
    When you're a person like me, who works on programming tools, I think it's fair to say that there are not too many days when you can come home to your children, tell them about your day, and they say something like "Wow, cool!" However, today is one...
  • Rico Mariani's Performance Tidbits

    Synchronization Complexity in the .NET Framework

    • 11 Comments
    Several people here (you know who you are) have been nagging me to do an analysis similar to the one I did for allocations but to get an idea of which methods might do locking and how much. So I repeated my experiment, this time counting any calls to...
  • Rico Mariani's Performance Tidbits

    Performance Problems Survery -- Results

    • 11 Comments
    OK here's the respones to my highly non-scientific survey Your project is "In Trouble." The Big Boss has just walked into your office and told you that he needs you to save the day. Which of the following is more likely the culprit of this crisis that...
  • Rico Mariani's Performance Tidbits

    Performance Signatures CMG 2006 Paper

    • 7 Comments
    I presented this paper at the CMG 2006 conference. I've previously posted the content of my slides and some interesting results from using this sort of analysis but I thought you might like to see the paper in full. Comments are of course welcome. ...
  • Rico Mariani's Performance Tidbits

    Performance Problems Survey

    • 31 Comments
    Gentle Readers, see if you can comment on the following Hypothetical Situation: Your project is "In Trouble." The Big Boss has just walked into your office and told you that he needs you to save the day. Again? Which of the following is more likely...
  • Rico Mariani's Performance Tidbits

    .NET Framework Allocation Complexity Graph

    • 7 Comments
    A quick graphical view of how the framework measures up. This graph shows the number of methods of any given allocation complexity on a logarithmic scale. This allocation complexity is discussed in more detail in performance quiz #12 and this...
  • Rico Mariani's Performance Tidbits

    Performance Quiz #12 -- The Cost of a Good Hash -- Solution

    • 6 Comments
    Well once again there have been many thoughtful replies to both the original question as well as the followup with hints. Recall the original question asked a bit of trivia: could you name 5 implementations of GetHashCode in the framework that do things you might not expect to see in a hash function? It's a little bit of a vague question and also requires a good deal of arcane knowledge of the CLR. The most interesting thing about the discussion I think is just what people considered "unusual." But as always there was a method to my madness. So without further ado here's my list of "unusual" hash functions, there are 53 of them. ...
  • Rico Mariani's Performance Tidbits

    Performance Quiz #12 -- The Cost of a Good Hash -- Some Help

    • 32 Comments
    I continue to be astounded by what my readers can come up with. As usual I had a purpose for posing my last question and that purpose was to show that basically its hard to get a handle on what things cost in any kind of omnibus way. But imagine my...
  • Rico Mariani's Performance Tidbits

    Performance Quiz #12 -- The Cost of a Good Hash

    • 28 Comments
    This quiz is a little bit different than some of my others. Here is System.String.GetHashCode public override unsafe int GetHashCode() { fixed (char* text1 = ((char*) this)) { char* chPtr1 = text1; int num1 = 0x15051505; int num2 = num1; ...
  • Rico Mariani's Performance Tidbits

    Good Advice Scorned

    • 5 Comments
    I thought it might be interesting to start a discussion about what is possibly the number one frustration of the performance architect: What do you do when they won't listen to you ? I'm sure you've all faced this, you lay out the situation, you show...
  • Rico Mariani's Performance Tidbits

    Five Things About Me

    • 3 Comments
    I guess it's fate: I was blog tagged by both Jeff Beehler and J.D. Meier within hours of one another. So here are my five things you probably didn't know about me (but some of you do). I got my first professional programming job (I was 15 years old) at...
Page 4 of 11 (260 items) «23456»