Rico Mariani's Performance Tidbits

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

  • Rico Mariani's Performance Tidbits

    Tracking down managed memory leaks (how to find a GC leak)

    • 70 Comments
    If you think you've got memory leaks, or if you're just wondering what kind of stuff is on your heap you can follow the very same steps that I do and get fabulous results your friends will envy. OK, well maybe not, but they're handy anyway. These steps...
  • Rico Mariani's Performance Tidbits

    When to call GC.Collect()

    • 64 Comments
    One of my first postings was this one: Two things to avoid for better memory usage in which I gave some approximately correct advice (is there any other kind? <g>) about using GC.Collect(). I still stand by this advice but I think maybe this is...
  • Rico Mariani's Performance Tidbits

    Tidbits on video

    • 1 Comments
    http://channel9.msdn.com has a video including a little interview with me that was recently posted. As usual I don't say anything profound but you might like it anyway :) The specific article is here: http://channel9.msdn.com/ShowPost.aspx?PostID=30134#30134
  • Rico Mariani's Performance Tidbits

    More Performance Tidbits for library writers

    • 22 Comments
    However careful you are with your performance culture when creating everyday professional code you need to be doubly careful when creating libraries for other developers. This is of course because when writing a library you can't know in advance exactly...
  • Rico Mariani's Performance Tidbits

    A performance tidbits reference

    • 13 Comments
    Imagine my surprise when I found that the Java Performance Tuning newsletter had linked to my blog (see http://javaperformancetuning.com/news/news046.shtml ) and imagine how much more surprised I was when they said this: ...Performance wise this blog...
  • Rico Mariani's Performance Tidbits

    Cold Startup Performance

    • 23 Comments
    I received several requests to write a little something on using managed code in a cold startup case – by which I mean immediately, or at least soon, after a reboot. I guess before I get into that I should give my usual disclaimer that I’m...
  • Rico Mariani's Performance Tidbits

    Performance planning for Risk Management

    • 1 Comments
    Eric Gunnerson has an interesting position regarding my latest performance advice and I thought I'd respond to what he's written. Eric counsels in part: "...I'm not sure that you should spend too much time thinking about the issues that he's talking about...
  • Rico Mariani's Performance Tidbits

    Six Questions about Generics and Performance

    • 16 Comments
    Here are some comments from a recent discussion on Generics that I thought were generally useful. The comments have been edited so that they fit better with the general format of a Q&A session. The origin of this discussion was some commentary on...
  • Rico Mariani's Performance Tidbits

    "Generic" advice on using language features in library

    • 7 Comments
    One of the hard things about working on the CLR is that your code is likely to be used in a wide variety of situations and so from a performance perspective you have to be a lot more careful than if you're just writing tools for a specific context that...
  • Rico Mariani's Performance Tidbits

    Tracking changes over time

    • 1 Comments
    I got some interesting questions from a colleague over the long weekend which I thought were of general interest We don’t have an industry std benchmarks for a lot of scenarios and here is how I want to sign off on the performance of any build – If (we...
  • Rico Mariani's Performance Tidbits

    Performance Tidbits

    • 25 Comments
    (Some additional remarks on this posting can be found here -- feel free to continue comments on that chain) Here are a few things that I often look for when reviewing code or APIs for performance issues. None of these are absolutes but they’re little...
  • Rico Mariani's Performance Tidbits

    Performance Quiz #4 -- Of Sets and Sundry -- Solution

    • 5 Comments
    Well thank you all very much for those great responses, I was very impressed! What I did to get my answers was build a little harness with the test cases and then used QueryPerformanceCounter and friends to get the most accurate times I could. Then seperately...
  • Rico Mariani's Performance Tidbits

    Performance Quiz #4 -- Of Sets and Sundry

    • 20 Comments
    By popular demand, here is the next exciting Performance Quiz -- your chance for fame, glory and recognition or at least a few minutes of amusement anyway :) Below are two methods for taking an array of strings in some random order, removing the duplicates...
  • Rico Mariani's Performance Tidbits

    Personal emails

    • 3 Comments
    I got some more personal email via my blog here today and I think it's sort of reaching the point where I should write a little something about my policy on one to one communication. I do apologize but there's just no way that I could possibly hope...
  • Rico Mariani's Performance Tidbits

    csc default options change (use /o+ now)

    • 0 Comments
    Eric writes about this in his blog It's important that you get in the habit of throwing /o+ for your retail builds as you would for C++ compilation systems. If it had been me I'd have made /o+ the default but then I'm the perf guy so I have a jaded...
  • Rico Mariani's Performance Tidbits

    When to create exception objects

    • 5 Comments
    I got this question today, thought I'd share my answer here: Q: People are creating and throwing an exception at the same place, usually when a problem occurred. Does it hurt if someone creates an exception in a static construction, then throw...
  • Rico Mariani's Performance Tidbits

    It's a feedback time of year

    • 5 Comments
    Performance review time at Microsoft is a good time for self-reflection and to make a point of getting feedback on how things have gone for the past year. I find the feedback can be both surprising and educational so from time to time I try to coax comments...
  • Rico Mariani's Performance Tidbits

    foreach and performance rules

    • 3 Comments
    I was looking at Brad’s blog this morning and I was astounded to find that some people had chosen not to use foreach “Because Rico said so” though they probably didn’t use those exact words. I found that very troublesome for several...
  • Rico Mariani's Performance Tidbits

    Performance Quiz #3 -- Solution

    • 10 Comments
    And now the exciting solution to Performance Quiz #3 ! There's actually an enourmous amount of philosophy that can be learned from this little example in terms of good habits but I'd like to anchor this in the numbers so let's begin with those. ...
  • Rico Mariani's Performance Tidbits

    Performance Quiz #3

    • 4 Comments
    The funny thing about managed code is that sometimes people forget that just because we offer an easy/convenient way to do things if you're doing a quick RAD application doesn't mean that the RAD way is in fact the right way. In fact, the good old fashioned...
  • Rico Mariani's Performance Tidbits

    Optimistic vs. Pessimistic Locking consequences

    • 2 Comments
    Putting on my "database guy" hat, a few days I was asked to comment on locking techniques for databases and to point out some problems with using transactions as a pessimistic locking technique. Here's what I said... Some definitions: Optimistic...
  • Rico Mariani's Performance Tidbits

    Wow, someone was listening :)

    • 0 Comments
    I got quoted in Marco Dorantes' WebLog -- he has some interesting thoughts, might want to give him a read.
  • Rico Mariani's Performance Tidbits

    Of Strings and Services

    • 4 Comments
    Here's some Q&A that followed a recent internal performance talk that I thought was generally useful. 1) Is there a way to browse and cleanup allocated resources on request completion for webservice? It's generally a very bad idea to try to...
  • Rico Mariani's Performance Tidbits

    Engineering is a quantitative discipline

    • 3 Comments
    A few days ago I saw request for performance related information on one of our internal discussion lists that I thought was a bit vague and so I decided it was a good time to introduce my latest performance meme. Here's my response slightly edited and...
  • Rico Mariani's Performance Tidbits

    Two quick hrefs

    • 0 Comments
    My colleague Maoni has a blog , you might want to give it a visit. Also there was a great deal of feedback on my last posting that I think is valuable. If you don't routinely read the feedback you might want to give that posting a second look.
Page 10 of 12 (286 items) «89101112