Sign in
Rico Mariani's Performance Tidbits
Implying no warranties and conferring no rights: "AS IS" since 1988
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Tags
databases
debuggers
design advice
History of Visual Studio
locking
Pages
performance
quiz
ramblings
recommendations
signatures
using tools
visual studio
Archive
Archives
March 2012
(3)
February 2012
(3)
January 2012
(3)
December 2011
(1)
November 2011
(1)
September 2011
(1)
September 2010
(1)
June 2010
(1)
April 2010
(5)
December 2009
(1)
October 2009
(13)
September 2009
(2)
August 2009
(1)
June 2009
(3)
May 2009
(3)
December 2008
(1)
November 2008
(4)
September 2008
(2)
August 2008
(6)
June 2008
(2)
May 2008
(2)
February 2008
(2)
January 2008
(2)
November 2007
(5)
October 2007
(2)
September 2007
(3)
August 2007
(3)
July 2007
(3)
June 2007
(6)
May 2007
(1)
April 2007
(2)
March 2007
(1)
February 2007
(5)
January 2007
(7)
December 2006
(2)
November 2006
(1)
September 2006
(4)
August 2006
(4)
July 2006
(12)
June 2006
(3)
May 2006
(5)
April 2006
(6)
March 2006
(6)
February 2006
(2)
January 2006
(2)
December 2005
(2)
November 2005
(8)
October 2005
(4)
September 2005
(4)
August 2005
(7)
July 2005
(2)
June 2005
(3)
May 2005
(12)
April 2005
(3)
March 2005
(5)
February 2005
(2)
January 2005
(3)
December 2004
(2)
November 2004
(2)
October 2004
(3)
September 2004
(4)
August 2004
(3)
July 2004
(4)
June 2004
(8)
May 2004
(6)
April 2004
(4)
March 2004
(8)
February 2004
(4)
January 2004
(3)
December 2003
(11)
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Rico Mariani's Performance Tidbits
Performance Quiz #10 -- Thread local storage
Posted
over 7 years ago
by
ricom
8
Comments
It's time for another quiz! A very short one this time. If I need some thread local storage and I might need several entries should I use: Thread.GetData(slot) and Thread.SetData(slot, object) or should I make my own static member like this ...
Rico Mariani's Performance Tidbits
Using ReaderWriterLock part 3 (last in this set)
Posted
over 7 years ago
by
ricom
0
Comments
Well I think it's raining ReaderWriterLocks this month! Jeff Richter has an article on MSDN that goes over a lot of the basics and some stuff that's a lot more than basic. And then there's Vance Morrison's March article on the subject as well. Lots of...
Rico Mariani's Performance Tidbits
Using ReaderWriterLock part 2
Posted
over 7 years ago
by
ricom
5
Comments
Well the trouble with simple samples like the one I provided in part 1 is that well... they're too simple. Some of the improvements that you can make in them won't work generally. But nonetheless I think there's some interesting discussion possibilities...
Rico Mariani's Performance Tidbits
Using ReaderWriterLock -- are you getting what you think you're getting?
Posted
over 7 years ago
by
ricom
14
Comments
Oh boy, more locking problems for the weekend! Here's a more complicated lock that often gets used when it shouldn't and is avoided when it should be used. Like the other articles in this series I'll provide a bit of code and ask for comments, it's...
Rico Mariani's Performance Tidbits
Putting your synchronization at the correct level -- solution
Posted
over 7 years ago
by
ricom
13
Comments
Of course when I say "solution", I really mean "my solution" because there's not really just one way to do this. But this is an approach I like and I'll go over why I like it. Recall the code from the original problem : (there was some very interesting...
Rico Mariani's Performance Tidbits
Putting your synchronization at the correct level
Posted
over 7 years ago
by
ricom
33
Comments
Continuing in what's turned into my series on locking advice, I have a new example for you of a typical problem that happens in class design. As usual I've simplified this almost to the point of being silly to illustrate the problem. Hopefully the crux...
Rico Mariani's Performance Tidbits
Simplify your locking strategy -- simpler is better
Posted
over 7 years ago
by
ricom
18
Comments
Well I didn't mean to but it seems I'm writing a series of articles on locking. Based on my last posting I got several requests for a simple example of a case that could be improved with simpler locking. Here's something of that ilk that's similar...
Rico Mariani's Performance Tidbits
Locking -- Isolation -- Unit of Work -- Performance -- Solution
Posted
over 7 years ago
by
ricom
7
Comments
A few days ago I posted a concurrency problem for commentary and I got a very nice set of responses. Now I can't say that there is any answer to this problem that I would say is universally correct but there are some interesting observations that we...
Rico Mariani's Performance Tidbits
Locking -- Isolation -- Unit of Work -- Performance
Posted
over 7 years ago
by
ricom
11
Comments
I've had a bit of a locking/threading theme in some of my recent postings so I thought I'd continue that with a little problem. Here's a (simplified) set of operations that is sort of an example of what you might need to do in a free threaded class. Let...
Rico Mariani's Performance Tidbits
Visual C++ 4.0 Trivia -- some old working set results
Posted
over 7 years ago
by
ricom
1
Comments
This isn't exactly a quiz because you couldn't possibly know the answer unless you were there or are pyschic but it's a fun result anyway so I thought I'd share. If you've ever read my mini-bio anywhere you'll know that this is actually my second stint...
Rico Mariani's Performance Tidbits
The Performance War: Using counts to help navigate flat performance reports
Posted
over 7 years ago
by
ricom
3
Comments
A while ago I wrote about how you often win the performance war 5% at a time . The theme of that article was essentially that if you are finding huge performance wins, especially from just the most basic performance reports, that's usually a sign that...
Rico Mariani's Performance Tidbits
First rate posting on mem analysis
Posted
over 7 years ago
by
ricom
3
Comments
I was just going through some memory leak information and I stumbled across a newish posting from Tess: http://blogs.msdn.com/tess/archive/2006/03/27/561715.aspx This is a great little article with lots of juicy details very much in the spirit...
Rico Mariani's Performance Tidbits
Same Resource, Same Lock or else locking won't give you the protection you need
Posted
over 7 years ago
by
ricom
6
Comments
I sometimes see funny locking patterns because there is a mental assumption that the lock keyword (via Monitor features of the runtime) automatically guards the contents of the locked region. This isn't the case. All that is guaranteed is that only one...
Rico Mariani's Performance Tidbits
Performance Quiz #9 -- extra innings due to dispatch stubs
Posted
over 7 years ago
by
ricom
1
Comments
Well you'll recall that in the Performance Quiz #9 solution there was a surprising result where Test7 was actually faster than Test5 even though they appear to be doing basically exactly the same work. So my new challenge to you was to see if you can...
Rico Mariani's Performance Tidbits
Performance Quiz #9 : IList<T> List and array speed -- solution
Posted
over 7 years ago
by
ricom
8
Comments
Last week I posted Performance Quiz #9 for discussion. Well the comments have been just awesome and many people went right ahead and measured the results. Some of you have discovered the key point in this particular test: Arrays are magic. In the...
Rico Mariani's Performance Tidbits
Performance Quiz #9 : IList<T> List and array speed
Posted
over 7 years ago
by
ricom
34
Comments
A short and sweet quiz with lots of juicy discussion possibilities: public int Sum( IList < ushort > indices) { int result = 0; for ( int i = 0; i < indices.Count; i++) result += indices[i]; return result; } Considering only the time it...
Rico Mariani's Performance Tidbits
Winning performance on Winforms from Milena
Posted
over 7 years ago
by
ricom
0
Comments
A great article on Winforms performance from a colleague http://msdn.microsoft.com/msdnmag/issues/06/03/WindowsFormsPerformance/ Definately worth a read, thank you Milena!
Rico Mariani's Performance Tidbits
I guess he's worth reading now :)
Posted
over 7 years ago
by
ricom
2
Comments
My long time friend and colleague Jack Gudenkauf has joined the CLR as an architect http://blogs.msdn.com/jackg/archive/2006/02/06/526217.aspx I know Jack is expecting me to tell you all what a big loser I think he is but I'll surprise him by not...
Rico Mariani's Performance Tidbits
Constant Soft Faults per second -- another old Sidewalk Story
Posted
over 7 years ago
by
ricom
2
Comments
There was one other Real Gem from my experience with Sidewalk so I thought I'd share that one too. I originally wrote this back in 2000 for an internal audience but here it is for you all now. Remember this is discussing performance on 1998 era hardware...
Rico Mariani's Performance Tidbits
Unmanaged Memory Fragmentation -- an old story
Posted
over 7 years ago
by
ricom
12
Comments
Before I worked on the CLR I spent several years in MSN. One of the big projects I worked on was "Sidewalk" which among other things offered a yellow pages service. A lot of this work was done under IIS with ISAPI extensions and you can imagine the fun...
Rico Mariani's Performance Tidbits
Holding Out For A [Coding] Hero
Posted
over 7 years ago
by
ricom
10
Comments
Well I had so much fun with my parody of A Few Good Men that I got inspired when I was listening to Bonnie Tyler yesterday. So here's another cautionary tale, don't let this happen to your manager :) ----- Holding Out For A [Coding]...
Rico Mariani's Performance Tidbits
Buckle up: it’s going to be a bumpy ride
Posted
over 7 years ago
by
ricom
7
Comments
It’s not easy to get good performance culture. Perhaps at first blush you might think that it would be easy. After all performance planning, like many other quality aspects, is about creating a better product for your customers in a better way. It...
Rico Mariani's Performance Tidbits
Amdahl's Law : Big Speedups From Bigger Fractions
Posted
over 8 years ago
by
ricom
4
Comments
Does everyone know Amdahl's Law ? This law talks about the best gain you can hope to achieve by a certain class of improvement. The most common place that it's used is in talking about what gains you might be able to get from making your algorithms...
Rico Mariani's Performance Tidbits
Exciting changes for me
Posted
over 8 years ago
by
ricom
16
Comments
I've changed jobs. Well, sort of :) For the Whidbey product release I was the performance architect on the CLR, and I can't even start to tell you how much fun that was. And how educational it was. So the bad news is I'm not doing that anymore....
Rico Mariani's Performance Tidbits
Performance Quiz #8 -- The problems with parsing -- Part 5
Posted
over 8 years ago
by
ricom
6
Comments
And today we conclude our little saga with one final experiment, a little analysis and some comments. I hope you've enjoyed reading this series as much as I've enjoyed doing the experiments. First, as promised I created yet another version of this...
Page 6 of 11 (260 items)
«
4
5
6
7
8
»