Welcome to MSDN Blogs Sign in | Join | Help

March 2006 - Posts

Same Resource, Same Lock or else locking won't give you the protection you need

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
Posted by ricom | 6 Comments
Filed under: ,

Performance Quiz #9 -- extra innings due to dispatch stubs

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
Posted by ricom | 1 Comments
Filed under: ,

Performance Quiz #9 : IList<T> List and array speed -- solution

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
Posted by ricom | 8 Comments
Filed under: ,

Attachment(s): Program.cs

Performance Quiz #9 : IList<T> List and array speed

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
Posted by ricom | 34 Comments
Filed under: ,

Winning performance on Winforms from Milena

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!
Posted by ricom | 0 Comments
Filed under:

I guess he's worth reading now :)

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
Posted by ricom | 2 Comments
Filed under:
 
Page view tracker