[Mono-dev] Patch for IPAddress.cs
Alan McGovern
alan.mcgovern at gmail.com
Mon Mar 26 21:48:53 EDT 2007
I was messing around with the BitArray class (patch to follow) when i
realised that it might be faster to use unsafe code to swap the bytes. So i
did a test or two and it turns out that for longs it's faster to use unsafe
code and copy bytes around.
This makes SwapLong ~20% faster (0.2x faster).
Is it ok to commit?
Alan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070327/8a6fb8b9/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipaddress.patch
Type: text/x-patch
Size: 1075 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070327/8a6fb8b9/attachment.bin
More information about the Mono-devel-list
mailing list