[Mono-devel-list] [PATCH] ABC removal on arr [byte_value]

Ben Maurer bmaurer at users.sourceforge.net
Tue Apr 27 23:30:22 EDT 2004


Hello,

The following patch eliminates ABC on a static, readonly array of length
256 or greater that is accessed with an index that is a byte. For
example:

static readonly int [] my_array = new int [256];

static int Foo (byte b) 
{
    return my_array [b];
}

This type of code can be seen in stuff such as lookup tables.

-- Ben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bytearr.patch
Type: text/x-patch
Size: 1680 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040427/f3925b37/attachment.bin 


More information about the Mono-devel-list mailing list