March 2006 - Posts

Same Resource, Same Lock or else locking won't give you the protection you need
22 March 06 06:49 PM | 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 Read More...
Filed under: ,
Performance Quiz #9 -- extra innings due to dispatch stubs
21 March 06 05:37 PM | 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 Read More...
Filed under: ,
Performance Quiz #9 : IList<T> List and array speed -- solution
12 March 06 09:46 AM | 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 test Read More...
Filed under: ,
Attachment(s): Program.cs
Performance Quiz #9 : IList<T> List and array speed
09 March 06 07:31 PM | 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 takes Read More...
Filed under: ,
Winning performance on Winforms from Milena
07 March 06 03:22 PM | 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! Read More...
Filed under:
I guess he's worth reading now :)
02 March 06 12:34 PM | 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 doing Read More...
Filed under:

Search

This Blog

Syndication

Page view tracker