[Mono-devel-list] [PATCH] isinst/castclass optimizations

Ben Maurer bmaurer at users.sourceforge.net
Thu Mar 11 23:47:46 EST 2004

Hey guys,

I have a quick patch that speeds up operations with castclass and
isinst. It does two things:

1) isinst has a special case for when it is being used as foo is Type.
2) isinst and castclass are faster when they are checking on a sealed
type. it just compares obj->vtable->klass to the klass rather than
looking up the supertype table.

Together I was able to get a 1-2% perf boost in mcs bootstrap.

Attached is the patch. It also includes my test case for measuring raw

-- Ben
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mini-isinst.patch
Type: text/x-patch
Size: 15076 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040311/6325ee02/attachment.bin 

More information about the Mono-devel-list mailing list