[Mono-dev] BitArray patch

Alan McGovern alan.mcgovern at gmail.com
Mon Mar 26 21:53:05 EDT 2007


I was just looking at the bitarray code and i thought that instead of a lot
of bitshifting and messing to retrieve individual bytes from int's it would
be faster (and easier?) to use unsafe code and mess with individual bytes
that way. This patch makes it about 20% faster to create a bit array from an
int[].

I'm not too sure if it's worth committing though.

Alan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070327/24c4b917/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BitArray.patch
Type: text/x-patch
Size: 1793 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070327/24c4b917/attachment.bin 


More information about the Mono-devel-list mailing list