Rico Mariani's Performance Tidbits

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

  • Rico Mariani's Performance Tidbits

    My mom doesn't care about space

    • 12 Comments
    Now, before I go on, in the interest of not filling this article with assorted exceptions for perfect accuracy which I could never possibly achieve anyway, kindly allow me to make the general point bearing in mind that, as usual, what I write is only...
  • Rico Mariani's Performance Tidbits

    Performance Quiz #1 (of a series?)

    • 23 Comments
    Recently there was a discussion on one of our internal email aliases in which this problem came up. I though it was an interesting problem so I posed this Quiz to assorted people I work with to see what kinds of things they would say. Considering these...
  • Rico Mariani's Performance Tidbits

    He will triumph who knows when to wrap and when not to

    • 2 Comments
    This advice is somewhat redundant with what I posted a few days ago but, what the heck, it's got more spicy goodness than the previous formulation. Where your underlying functionality is extraordinarily fast you cannot afford to add levels of abstraction...
  • Rico Mariani's Performance Tidbits

    Sometimes it's all in the numbers

    • 4 Comments
    Here's a little story about a problem I diagnosed back when I was working on sidewalk.com that I thought was interesting to share. It turned out that when we released the Yellow Pages features of Sidewalk we had this weird thing going on where about...
  • Rico Mariani's Performance Tidbits

    (#ifdef DEBUG)++

    • 16 Comments
    In his most recent (as of this writing) blog entry Brad Abrams writes about an idea we've been kicking around and which I happen to like very much. I think though that adding a few more details is necessary to help get the best possible feedback. ...
  • Rico Mariani's Performance Tidbits

    Predictable Payment Per Procedure

    • 1 Comments
    Just a very quick entry today, motivated by some weekend examinations, contemplations, reflections, and probably some other *tions that I can't remember. I often come across code that has assorted extensibility hooks built right into it. And even nice...
  • Rico Mariani's Performance Tidbits

    Bad Analysis Worse Than None

    • 31 Comments
    Once again I’ll begin by saying that I’m simplifying the below in the interest of not writing a novel, so please take this article as only approximately correct. I try to make the principles more important than the details. I’ve...
  • Rico Mariani's Performance Tidbits

    Some Maxims

    • 1 Comments
    No performance context exactly here, just some thoughts I had lying around. Sadly I have no attribution for any of these... might be fun to track down the original author. Mediocrity can be temporary housing, but should never be long term...
  • Rico Mariani's Performance Tidbits

    A like-minded performance person

    • 3 Comments
    Paul Vick has some interesting things to say about his experiences in this blog . I think we carry a lot of the same scars.
  • Rico Mariani's Performance Tidbits

    Objects: Release or Recycle?

    • 12 Comments
    I wish there was an easy answer to this question, but there isn’t. Well maybe there is but I don’t know it J So once again I’m writing a blog full of advice you have to take with a grain of salt. I’m starting to feel like the Charlie...
  • Rico Mariani's Performance Tidbits

    Caching Implies Policy

    • 11 Comments
    A colleague of mine once said those words in a meeting and they really hit a chord with me. I think there's a lot of meat in those three words. We often reach for caches to improve performance. However, it is vitally important to make a deliberate...
  • Rico Mariani's Performance Tidbits

    Some Thoughts About Inlining

    • 9 Comments
    There’s a few things I’d like to say about inlining in the managed world. I guess I should start with the basics of why it’s important, but before I do, remember that like all my advice this is to be taken in moderation with due consideration...
  • Rico Mariani's Performance Tidbits

    Reusable code vs. Performant code

    • 3 Comments
    I just happened across this quote and it makes me want to rush out and buy that book... “In the last ten years we have encountered quite a few C++ projects that fell far short of their required performance. At the heart of those performance failures...
  • Rico Mariani's Performance Tidbits

    Exception Cost: When to throw and when not to

    • 24 Comments
    The Cost of Exceptions I wish I could speak intelligently on the exact cost but it's really quite difficult to project for any given usage, it's best measured for your specific cases. However there are a couple of different kinds of cost and they're...
  • Rico Mariani's Performance Tidbits

    More StringBuilder advice

    • 14 Comments
    I first wrote about this here , but I've since received several requests for more prescriptive advice on the subject. Again you can never be sure without understanding the exact usage pattern because the results really do vary widely but here's some general...
  • Rico Mariani's Performance Tidbits

    Designing for Performance

    • 5 Comments
    I wrote this article back in July and it ended up being the basis of this video (scroll to where it says “Thinking about Performance” and choose a speed) I was going to have the article edited and published seperately but somehow that never...
  • Rico Mariani's Performance Tidbits

    Another bad lock pattern

    • 13 Comments
    A while ago I asked Dr. GUI to post an MSDN article about the perils of using lock(typeof(Foo)), you can still find that article here . But recently I've started seeing another pattern that's just as bad: class MyClass { private static String...
  • Rico Mariani's Performance Tidbits

    Mid-life crisis

    • 35 Comments
    This particular problem (I call it mid-life-crisis) seems to come up fairly often so I thought I'd write up some general advice on it. The symptoms go something like this: There is a server process (usually a web server) and that process has a high percentage...
  • Rico Mariani's Performance Tidbits

    My new home

    • 0 Comments
    Well here I am in my new home, feels comfy already. I copied my old postings here for easy reference, the originals with comments are still on http://blogs.gotdotnet.com/ricom , but there won't be any new articles there. Happy Holidays!
  • Rico Mariani's Performance Tidbits

    Two things to avoid for better memory usage

    • 23 Comments
    OK, I never give rules, because they always have exceptions, and I won't start today, but I'm gonna give a couple things that look like rules but aren't. I'll leave it as an exercise to the reader to decide when they should break these almost-rules :...
  • Rico Mariani's Performance Tidbits

    Locality of reference and performance

    • 2 Comments
    Eric Gunnerson told me he had some requests for information on how to get good locality of reference when using the CLR. This is a topic that's near and dear to me so that's all the provocation I needed to blog about it. I think first it's important...
  • Rico Mariani's Performance Tidbits

    Concatenating with StringBuilders vs. Strings

    • 9 Comments
    I would never make a statement so bold as "Use Stringbuilders to concatenate" without having a deeper understanding of the concatenation pattern. I tend to give advice like "Many users find Stringbuilders useful for their concatenation pattens, consider...
  • Rico Mariani's Performance Tidbits

    Good talk on performance culture

    • 7 Comments
    Plugging my own video, I think it's pretty entertaining for a talk a performance, even has some content. :) http://gotdotnet.com/team/clr/about_clr_performance.aspx The points from the key slides are Rule #1: Measure Just thinking about...
  • Rico Mariani's Performance Tidbits

    Loop unrolling for speed

    • 1 Comments
    I recently saw a posting where someone was considering a great deal of loop unrolling. I can imagine some exotic case where this is a good idea however in general it's more likely to be bad that good. For those that aren't familiar with the term, loop...
Page 11 of 11 (274 items) «7891011