[Mono-dev] Patch for IPAddress.cs
Alan McGovern
alan.mcgovern at gmail.com
Sat Mar 24 11:57:54 EDT 2007
With all the talk of BitConverting recently i took a look at
IPAddress.HostToNetwork(). I optimised the Swap*** methods to be a little
faster.
My own tests show that the SwapLong method is approximately 35% faster and
the SwapInt method is approximately 25% faster. No NUnit tests are needed as
i didn't change any logic, i just removed the use of the temporary
variables.
Alan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070324/ddf4eaec/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IpAddress.patch
Type: text/x-patch
Size: 1869 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20070324/ddf4eaec/attachment.bin
More information about the Mono-devel-list
mailing list