Browse by Tags

All Tags » Quick Tips » CLR Internals » Rants (RSS)

The problem with APIs like System.IO is that people ask questions like "How do I copy a StreamReader?"

The basic layout is generally that the user wants to pass a particular StreamReader instance to some method that does some processing. Upon return they find that their StreamReader in the local scope is now not where it was when they first called the...

Neat JIT performance improvement when using BR or BR_S

If you had your choice of how IL got JIT'ed down to the host processor assembly language, how would your JIT handle unconditional branching with regards to how the IL is laid out? I would think the JIT'er would be a two step processor myself. It would...

Want faster regular expressions? Maybe you should think about that IgnoreCase option...

Let me start with a disclaimer. RegexOptions.IgnoreCase is a very powerful option that allows you to match ignore character casing during matches irregardless of the currently running culture. In other words, this will allow you to take into account other...

The new face of the GC in Whidbey... I'm not sure this is a pretty face...

Brad Abrams commented several months ago about some changes in the GC that allows you to tune your application for GC collection when working with unmanaged objects. The two concepts he talks about are a small managed object that is hiding a much larger...

Rotor FUBAR of the day (compliments Christoph Nahr): Queue.Clone returns invalid results...

So the method in question is Queue.Clone(). Ideally, Queue.Clone() would return an exact copy of the Queue being cloned. IMO that should mean array density and size, current head/tail pointers, and current versions. However, the Clone method does a couple...
Posted by Justin Rogers | with no comments
More Posts