[Mono-dev] Patch for IPAddress.cs
Gareth Pearce
tilps.kilm at gmail.com
Sat Mar 24 19:28:38 EDT 2007
Just wondering, did you compare combing the byte parts with | instead
of + to see if there was any performance difference?
--Gareth
Alan McGovern 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.
More information about the Mono-devel-list
mailing list