[Mono-dev] Patch for IPAddress.cs

Alan McGovern alan.mcgovern at gmail.com
Sat Mar 24 13:25:53 EDT 2007


I'd just like to point out that HostToNetwork() is already covered by NUnit
tests, hence why i didn't include new ones.

Alan.

On 3/24/07, Alan McGovern <alan.mcgovern at gmail.com> wrote:
>
> 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/b752e5a8/attachment.html 


More information about the Mono-devel-list mailing list